Skip to content

Commit 7806891

Browse files
committed
/admin/: minor fixes for IDInternal administration
- Legacy-Id: 2164
1 parent 04c8bfa commit 7806891

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

ietf/idtracker/admin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ class IDIntendedStatusAdmin(admin.ModelAdmin):
4848
class IDInternalAdmin(admin.ModelAdmin):
4949
ordering=['draft']
5050
list_display=['draft', 'token_email', 'note']
51+
search_fields=['draft__filename']
52+
raw_id_fields=['draft','ballot']
5153
admin.site.register(IDInternal, IDInternalAdmin)
5254

5355
class IDNextStateAdmin(admin.ModelAdmin):

ietf/idtracker/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ class IDInternal(models.Model):
563563
token_name = models.CharField(blank=True, max_length=25)
564564
token_email = models.CharField(blank=True, max_length=255)
565565
note = models.TextField(blank=True)
566-
status_date = models.DateField(null=True)
566+
status_date = models.DateField(blank=True,null=True)
567567
email_display = models.CharField(blank=True, max_length=50)
568568
agenda = models.IntegerField(null=True, blank=True)
569569
cur_state = models.ForeignKey(IDState, db_column='cur_state', related_name='docs')

0 commit comments

Comments
 (0)