Commits

Anonymous committed 04e7a0a

Reorganised fieldsets in admin

Comments (0)

Files changed (1)

gnocchi/mail/admin.py

 class EmailAdmin(admin.ModelAdmin):
     list_display = ('name', 'email_to', 'email_from', 'template',)
 
+    fieldsets = (
+        (None, {
+            'fields': ('name',),
+        }),
+        ('Pages', {
+            'fields': ('path', 'redirect_to',),
+        }),
+        ('Email', {
+            'fields': ('email_from', 'email_to', 'subject', 'template', 'as_html',),
+        }),
+    )
+
 admin.site.register(models.Email, EmailAdmin)