|
@@ -16,9 +16,14 @@ class ContribAdmin(admin.ModelAdmin):
|
|
|
search_fields = ["name", "email", "phone"]
|
|
|
list_display = ("name", "date", "phone", "email")
|
|
|
|
|
|
+ readonly_fields = ['date', 'expiration_date']
|
|
|
fieldsets = [
|
|
|
[None, {
|
|
|
- 'fields': [('name', 'contrib_type'), 'comment', 'email', 'phone'],
|
|
|
+ 'fields': [
|
|
|
+ ('name', 'contrib_type'),
|
|
|
+ 'comment', 'email', 'phone',
|
|
|
+ ('date', 'expiration_date'),
|
|
|
+ ],
|
|
|
}],
|
|
|
['Localisation', {
|
|
|
'fields': [
|