source: asadb/forms/admin.py @ dbaeedf

fysm-4-1iframespace-accessstablestagetest-hooks
Last change on this file since dbaeedf was c27da9e, checked in by Alex Dehnert <adehnert@…>, 16 years ago

Use the name "category" consistently

We want to support ASA-defined "categories" and free-form "tags".
Unfortunately, when originally coding I used the terms interchangeably.
This replaces instances of the "tag" name with the "category" name,
thus freeing up "tag" for the new semantics.

  • Property mode set to 100644
File size: 528 bytes
Line 
1import forms.models
2from django.contrib import admin
3
4class FYSMAdmin(admin.ModelAdmin):
5    list_display = (
6        'group',
7        'display_name',
8        'year',
9        'website',
10        'contact_email',
11    )
12    list_display_links = ('group', 'display_name', 'year', )
13
14class FYSMCategoryAdmin(admin.ModelAdmin):
15    list_display = (
16        'name',
17    )
18    prepopulated_fields = {"slug": ("name",)}
19
20admin.site.register(forms.models.FYSM, FYSMAdmin)
21admin.site.register(forms.models.FYSMCategory, FYSMCategoryAdmin)
Note: See TracBrowser for help on using the repository browser.