summaryrefslogtreecommitdiff
path: root/app/jrnl/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/jrnl/admin.py')
-rw-r--r--app/jrnl/admin.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py
index 15a7512..da4bae3 100644
--- a/app/jrnl/admin.py
+++ b/app/jrnl/admin.py
@@ -2,7 +2,7 @@ from django.contrib import admin
from django import forms
from django.contrib.gis.admin import OSMGeoAdmin
-from .widgets import AdminImageWidget
+from utils.widgets import AdminImageWidget, LGEntryForm
from .models import Entry, EntryAside, PostImage, HomepageCurrator
@@ -15,17 +15,8 @@ class EntryAsideAdmin(admin.ModelAdmin):
pass
-class BlogEntryForm(forms.ModelForm):
- class Meta:
- model = Entry
- fields = '__all__'
- widgets = {
- 'body_markdown': forms.Textarea(attrs={'rows': 50, 'cols': 100}),
- }
-
-
class EntryAdmin(OSMGeoAdmin):
- form = BlogEntryForm
+ form = LGEntryForm
inlines = [EntryAsideInline]
def formfield_for_dbfield(self, db_field, **kwargs):