/admin/: minor fixes for IDInternal administration

- Legacy-Id: 2164
This commit is contained in:
Pasi Eronen 2010-03-21 13:52:30 +00:00
parent 04c8bfa6fa
commit 780689113e
2 changed files with 3 additions and 1 deletions

View file

@ -48,6 +48,8 @@ admin.site.register(IDIntendedStatus, IDIntendedStatusAdmin)
class IDInternalAdmin(admin.ModelAdmin):
ordering=['draft']
list_display=['draft', 'token_email', 'note']
search_fields=['draft__filename']
raw_id_fields=['draft','ballot']
admin.site.register(IDInternal, IDInternalAdmin)
class IDNextStateAdmin(admin.ModelAdmin):

View file

@ -563,7 +563,7 @@ class IDInternal(models.Model):
token_name = models.CharField(blank=True, max_length=25)
token_email = models.CharField(blank=True, max_length=255)
note = models.TextField(blank=True)
status_date = models.DateField(null=True)
status_date = models.DateField(blank=True,null=True)
email_display = models.CharField(blank=True, max_length=50)
agenda = models.IntegerField(null=True, blank=True)
cur_state = models.ForeignKey(IDState, db_column='cur_state', related_name='docs')