admin.site.register(Character, CharacterAdmin)
class InfluenceAdmin(admin.ModelAdmin):
- list_filter=('status', 'longterm', 'todo', 'character')
+ list_filter=('type', 'status', 'longterm', 'todo', 'character')
search_fields=('character', 'summary', 'description', 'contact')
- list_display=('character', 'contact', 'summary', 'longterm', 'status')
+ list_display=('character', 'contact', 'summary', 'longterm', 'status', 'type')
class Media:
js = ('base/js/yahoo-dom-event.js', 'base/js/logger-debug.js')
('P', _('Processing')),
('D', _('Done')),
)
+ TYPE_CHOICES = (
+ ('I', _('Influence')),
+ ('N', _('Notifcation')),
+ )
created = models.DateField(auto_now_add=1, verbose_name = _("Creation time"))
modified = models.DateField(auto_now=1, verbose_name = _("Modification time"))
+ type = models.CharField(max_length=1, choices=TYPE_CHOICES, default='I', verbose_name = _("Type"))
character = models.ForeignKey(Character, verbose_name = _("Character"))
contact = models.CharField(max_length=255, verbose_name = _("Contact Name"))
summary = models.CharField(max_length=255, verbose_name = _("Summary"))
msgstr ""
"Project-Id-Version: 1\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-01-13 12:23+0100\n"
+"POT-Creation-Date: 2010-02-13 13:01+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Matthijs Kooijman <matthijs@stdin.nl>\n"
"Language-Team: N/A\n"
msgid "Approved"
msgstr "Goedgekeurd"
-#: influences/models.py:15 influences/models.py:38
+#: influences/models.py:15 influences/models.py:42
msgid "Creation time"
msgstr "Aangemaakt op"
-#: influences/models.py:16 influences/models.py:39
+#: influences/models.py:16 influences/models.py:43
msgid "Modification time"
msgstr "Gewijzigd op"
msgid "Name"
msgstr "Naam"
-#: influences/models.py:18 influences/models.py:46
+#: influences/models.py:18 influences/models.py:51
#: templates/influences/email/character_changed.html:30
#: templates/influences/email/influence_changed.html:30
msgid "Status"
msgid "Player"
msgstr "Speler"
-#: influences/models.py:28 influences/models.py:41
+#: influences/models.py:28 influences/models.py:46
#: templates/influences/influence_detail.html:8
#: templates/influences/email/influence_changed.html:27
msgid "Character"
msgid "Done"
msgstr "Afgehandeld"
-#: influences/models.py:42
+#: influences/models.py:39 influences/models.py:94
+msgid "Influence"
+msgstr "Invloed"
+
+#: influences/models.py:40
+msgid "Notifcation"
+msgstr "Kennisgeving"
+
+#: influences/models.py:45
+msgid "Type"
+msgstr "Type"
+
+#: influences/models.py:47
msgid "Contact Name"
msgstr "Naam contactpersoon"
-#: influences/models.py:43
+#: influences/models.py:48
#: templates/influences/email/influence_changed.html:29
msgid "Summary"
msgstr "Samenvatting"
-#: influences/models.py:44
+#: influences/models.py:49
#: templates/influences/email/influence_changed.html:34
msgid "Description"
msgstr "Omschrijving"
-#: influences/models.py:45
+#: influences/models.py:50
msgid "Todo"
msgstr "Todo"
-#: influences/models.py:47 templates/influences/influence_detail.html:10
+#: influences/models.py:52 templates/influences/influence_detail.html:10
#: templates/influences/email/influence_changed.html:32
msgid "Long term"
msgstr "Lange termijn"
-#: influences/models.py:49 templates/influences/influence_detail.html:15
+#: influences/models.py:54 templates/influences/influence_detail.html:15
#: templates/influences/email/influence_changed.html:39
msgid "Result"
msgstr "Resultaat"
-#: influences/models.py:89
-msgid "Influence"
-msgstr "Invloed"
-
-#: influences/models.py:90
+#: influences/models.py:95
msgid "Influences"
msgstr "Invloeden"
#: templates/influences/add_influence.html:6
#: templates/influences/character_detail_block.html:15
-#: templates/influences/influence_list_block.html:14
+#: templates/influences/influence_list_block.html:15
msgid "Submit influence"
msgstr "Invloed indienen"
msgid "Your influences"
msgstr "Jouw invloeden"
-#: templates/influences/influence_list_block.html:11
+#: templates/influences/influence_list_block.html:12
msgid "No influences yet."
msgstr "Nog geen invloeden."