/admin/: minor fixes for IDInternal administration
- Legacy-Id: 2164
This commit is contained in:
parent
04c8bfa6fa
commit
780689113e
|
@ -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):
|
||||
|
|
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue