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 | |
|---|
| 1 | import forms.models |
|---|
| 2 | from django.contrib import admin |
|---|
| 3 | |
|---|
| 4 | class 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 | |
|---|
| 14 | class FYSMCategoryAdmin(admin.ModelAdmin): |
|---|
| 15 | list_display = ( |
|---|
| 16 | 'name', |
|---|
| 17 | ) |
|---|
| 18 | prepopulated_fields = {"slug": ("name",)} |
|---|
| 19 | |
|---|
| 20 | admin.site.register(forms.models.FYSM, FYSMAdmin) |
|---|
| 21 | admin.site.register(forms.models.FYSMCategory, FYSMCategoryAdmin) |
|---|
Note: See
TracBrowser
for help on using the repository browser.