Changeset bb674c2


Ignore:
Timestamp:
Aug 6, 2011, 5:35:15 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
165e5aa, 5b834ab
Parents:
c9d8369
git-author:
Alex Dehnert <adehnert@…> (08/06/11 05:35:15)
git-committer:
Alex Dehnert <adehnert@…> (08/06/11 05:35:15)
Message:

Improve admin usability

Location:
asadb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • asadb/forms/admin.py

    rc27da9e rbb674c2  
    1111    )
    1212    list_display_links = ('group', 'display_name', 'year', )
     13    list_filter = ('year', 'categories', )
     14    search_fields = ('group__name', 'group__abbreviation', 'display_name', 'year', )
    1315
    1416class FYSMCategoryAdmin(admin.ModelAdmin):
  • asadb/forms/models.py

    rc71d5c7 rbb674c2  
    3030            )
    3131        super(FYSM, self).save(*args, **kwargs) # Call the "real" save() method.
     32
     33    def __str__(self, ):
     34        return "%s (%d)" % (self.display_name, self.year, )
    3235
    3336    class Meta:
  • asadb/groups/admin.py

    r9480c7b rbb674c2  
    1616    )
    1717    list_display_links = ('id', 'name', )
     18    list_filter = [ 'activity_category', ]
     19    date_hierarchy = 'update_date'
    1820    search_fields = [ 'id', 'name', 'abbreviation', 'officer_email', 'athena_locker', ]
    1921
Note: See TracChangeset for help on using the changeset viewer.