@@ -80,7 +80,6 @@ def active_area_choices():
8080 active_area_choices = staticmethod (active_area_choices )
8181 class Meta :
8282 db_table = 'areas'
83- #ordering = ['area_acronym_id']
8483 verbose_name = "area"
8584 class Admin :
8685 list_display = ('area_acronym' , 'status' )
@@ -173,8 +172,8 @@ class Meta:
173172 db_table = "internet_drafts"
174173 class Admin :
175174 search_fields = ['filename' ]
175+ list_display = ('filename' , 'revision' , 'status' )
176176 pass
177- #list_display = ('filename', 'revision', 'status')
178177 #date_hierarchy = 'revision_date'
179178 #list_filter = ['revision_date']
180179
@@ -520,6 +519,7 @@ def abstain_ind(self):
520519 class Meta :
521520 db_table = 'ballots'
522521 unique_together = (('ballot' , 'ad' ), )
522+ verbose_name = "IESG Ballot Position"
523523 class Admin :
524524 pass
525525
@@ -562,7 +562,7 @@ class Admin:
562562 pass
563563
564564class IDAuthor (models .Model ):
565- document = models .ForeignKey (InternetDraft , db_column = 'id_document_tag' , related_name = 'authors' , edit_inline = models .TABULAR )
565+ document = models .ForeignKey (InternetDraft , db_column = 'id_document_tag' , related_name = 'authors' , edit_inline = models .TABULAR , raw_id_admin = True )
566566 person = models .ForeignKey (PersonOrOrgInfo , db_column = 'person_or_org_tag' , raw_id_admin = True , core = True )
567567 author_order = models .IntegerField (null = True , blank = True )
568568 def __str__ (self ):
@@ -576,8 +576,6 @@ class Meta:
576576 db_table = 'id_authors'
577577 verbose_name = "I-D Author"
578578 ordering = ['document' ,'author_order' ]
579- class Admin :
580- pass
581579
582580# PostalAddress, EmailAddress and PhoneNumber are edited in
583581# the admin for the Rolodex.
@@ -594,7 +592,6 @@ class PostalAddress(models.Model):
594592 person_or_org = models .ForeignKey (PersonOrOrgInfo , primary_key = True , db_column = 'person_or_org_tag' , edit_inline = models .STACKED )
595593 person_title = models .CharField (maxlength = 50 , blank = True )
596594 affiliated_company = models .CharField (maxlength = 70 , blank = True )
597- # always uppercase(affiliated_company)
598595 aff_company_key = models .CharField (maxlength = 70 , blank = True , editable = False )
599596 department = models .CharField (maxlength = 100 , blank = True )
600597 staddr1 = models .CharField (maxlength = 40 , core = True )
@@ -689,6 +686,9 @@ class Meta:
689686 ordering = ['?' ] # workaround django wanting to sort by acronym but not joining with it
690687 verbose_name = 'IETF Working Group'
691688 class Admin :
689+ search_fields = ['group_acronym__acronym' , 'group_acronym__name' ]
690+ list_display = ('group_acronym' , 'status' , 'area_director' )
691+ list_filter = ['status' , 'area_director' ]
692692 pass
693693
694694class WGChair (models .Model ):
@@ -760,6 +760,9 @@ class Meta:
760760 verbose_name = 'IETF WG Goal or Milestone'
761761 verbose_name_plural = 'IETF WG Goals or Milestones'
762762 class Admin :
763+ list_display = ('group_acronym' , 'description' , 'expected_due_date' )
764+ date_hierarchy = 'expected_due_date'
765+ list_filter = ['done' ]
763766 pass
764767
765768#### end wg stuff
0 commit comments