diff options
author | lxf <sng@luxagraf.net> | 2019-05-25 15:10:38 +0000 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2019-05-25 15:10:38 +0000 |
commit | dd09ca3810ea0798899870930c3efb388b776a7c (patch) | |
tree | 0cf0f8ba6c44b774a0867f48fce9cafb96620974 /app/figments/admin.py | |
parent | fc037fa9bf0eee9920ae1da14ce80d594f39cba4 (diff) |
made some changes to use new checkin model
Diffstat (limited to 'app/figments/admin.py')
-rw-r--r-- | app/figments/admin.py | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/app/figments/admin.py b/app/figments/admin.py deleted file mode 100644 index 34452bd..0000000 --- a/app/figments/admin.py +++ /dev/null @@ -1,46 +0,0 @@ -from django.contrib import admin -from .models import Figment, Series -from utils.widgets import LGEntryForm - - -class FigmentAdmin(admin.ModelAdmin): - form = LGEntryForm - list_display = ('title', 'pub_date', 'get_series') - prepopulated_fields = {"slug": ('title',)} - fieldsets = ( - ('Figment', { - 'fields': ( - 'title', - 'body_markdown', - ('slug', 'status'), - 'pub_date', - ), - 'classes': ( - 'show', - 'extrapretty', - 'wide' - ) - } - ), - ('Extra', { - 'fields': ( - 'dek', - 'prologue', - 'series', - 'published_link', - ), - 'classes': ( - 'collapse', - 'extrapretty', - 'wide' - ) - } - ), - ) - - -class SeriesAdmin(admin.ModelAdmin): - pass - -admin.site.register(Figment, FigmentAdmin) -admin.site.register(Series, SeriesAdmin) |