Make sure users can only edit their own case studies
This commit is contained in:
@ -22,7 +22,7 @@ class CaseStudyAdminForm(forms.ModelForm):
|
||||
|
||||
|
||||
class CaseStudyAdmin(LeafletGeoAdmin):
|
||||
list_display = ('id', 'date_created', 'entry_name', 'approved')
|
||||
list_display = ('id', 'date_created', 'entry_name', 'approved', 'author')
|
||||
actions = ['approve', 'unapprove']
|
||||
form = CaseStudyAdminForm
|
||||
|
||||
|
Reference in New Issue
Block a user