mirror of
https://github.com/jazzband/django-dbtemplates.git
synced 2026-03-16 22:20:28 +00:00
Make creation_date and last_updated fields readonly in admin (#144)
This commit is contained in:
parent
218b28b7aa
commit
a7f4e0bbe8
1 changed files with 1 additions and 0 deletions
|
|
@ -97,6 +97,7 @@ class TemplateAdminForm(forms.ModelForm):
|
|||
|
||||
class TemplateAdmin(TemplateModelAdmin):
|
||||
form = TemplateAdminForm
|
||||
readonly_fields = ['creation_date', 'last_changed']
|
||||
fieldsets = (
|
||||
(None, {
|
||||
'fields': ('name', 'content'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue