Skip to content

Commit

Permalink
chore: Make DonationProject.date_created readonly in admin view.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico-AP committed Jul 9, 2024
1 parent 0f06c95 commit a851042
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ddm/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class DonationProjectAdmin(admin.ModelAdmin):
Provides an overview of all active Donation Projects.
"""
list_display = ['name', 'owner', 'date_created', 'edit_link']
readonly_fields = ['date_created']

def has_add_permission(self, request, obj=None):
return False
Expand Down

0 comments on commit a851042

Please sign in to comment.