Skip to content

Commit

Permalink
Merge pull request #952 from kartoza/tinashechiraya-patch-41
Browse files Browse the repository at this point in the history
patch: prevent error
  • Loading branch information
tinashechiraya authored Mar 4, 2024
2 parents a2b7e0c + 35ae35e commit d186d8d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions django_project/monitor/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class ObservationsAdmin(admin.ModelAdmin):
list_filter = ('flag', 'is_validated',('obs_date', admin.DateFieldListFilter))
search_fields = ('site__site_name', 'site__river_name')
autocomplete_fields = ('site', 'user')
# actions = [make_verified, make_unverified, 'download_records']
actions = [make_verified, make_unverified, 'download_records']
inlines = (ObservationPestImageInline,)

def save_formset(self, request, form, formset, change):
Expand Down Expand Up @@ -84,7 +84,6 @@ def download_records(self, request, queryset):

return response
download_records.short_description = "Download selected records"
actions = [make_verified, make_unverified, 'download_records']


class SiteImageInline(admin.TabularInline):
Expand Down

0 comments on commit d186d8d

Please sign in to comment.