~registry/ubuntu-teamreports/trunk

« back to all changes in this revision

Viewing changes to teamreports/reports/admin.py

  • Committer: Daniel Holbach
  • Date: 2010-04-16 10:07:59 UTC
  • Revision ID: daniel.holbach@canonical.com-20100416100759-eqgm3ai408shfyzn
add proposal management form, use DateFields, add possibility to mark proposals for deletion

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from django.contrib import admin
2
 
from reports.models import Team, Person, TeamProposal, ReportEntry, TeamCategory
 
2
from reports.models import Team, Person, TeamProposal, ReportEntry
3
3
 
4
4
class TeamAdmin(admin.ModelAdmin):
5
5
    search_fields = ('lpid',)
14
14
class ReportEntryAdmin(admin.ModelAdmin):
15
15
    search_fields = ('date', 'team', )
16
16
 
17
 
class TeamCategoryAdmin(admin.ModelAdmin):
18
 
    search_fields = ('name', )
19
 
    list_display = ('name', )
20
 
 
21
17
admin.site.register(Team, TeamAdmin)
22
18
admin.site.register(Person, PersonAdmin)
23
19
admin.site.register(TeamProposal, TeamProposalAdmin)
24
20
admin.site.register(ReportEntry, ReportEntryAdmin)
25
 
admin.site.register(TeamCategory, TeamCategoryAdmin)