Changeset 1909
- Timestamp:
- 04/18/09 23:46:05 (11 months ago)
- Location:
- branches/0.9/pylucid_project
- Files:
-
- 2 modified
-
apps/pylucid/admin.py (modified) (5 diffs)
-
settings.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.9/pylucid_project/apps/pylucid/admin.py
r1907 r1909 19 19 from django.contrib import admin 20 20 21 from reversion.admin import VersionAdmin 22 21 23 from pylucid_project.apps.pylucid.models import PageTree, Language, PageContent, EditableStaticFile 22 24 … … 24 26 #------------------------------------------------------------------------------ 25 27 26 class PageTreeAdmin( admin.ModelAdmin):28 class PageTreeAdmin(VersionAdmin): 27 29 #prepopulated_fields = {"slug": ("title",)} 28 30 pass … … 43 45 44 46 45 class LanguageAdmin( admin.ModelAdmin):47 class LanguageAdmin(VersionAdmin): 46 48 pass 47 49 … … 49 51 50 52 51 class PageContentAdmin( admin.ModelAdmin):53 class PageContentAdmin(VersionAdmin): 52 54 list_display = ("get_absolute_url", "title_or_slug", "description", "lastupdatetime", "lastupdateby",) 53 55 list_display_links = ("title_or_slug",) … … 59 61 60 62 61 class EditableStaticFileAdmin( admin.ModelAdmin):63 class EditableStaticFileAdmin(VersionAdmin): 62 64 pass 63 65 -
branches/0.9/pylucid_project/settings.py
r1903 r1909 110 110 # external apps shipped and used with PyLucid: 111 111 'dbtemplates', 112 'reversion', 112 113 ) 113 114 # Add all existing PyLucid plugins