Skip to content

Commit

Permalink
Minor changes to admin
Browse files Browse the repository at this point in the history
  • Loading branch information
clairempr committed Apr 26, 2022
1 parent e3b768e commit a859263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion letters/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class MiscDocumentAdmin(DocumentAdmin):

class PlaceAdmin(gisAdmin.OSMGeoAdmin):
# show Save and Delete buttons at the top of the page as well as at the bottom
save_on_top=True
save_on_top = True
fields = ['id', 'name', 'state', 'country', 'point', 'notes']
readonly_fields = ['id']
default_lon = -8635591.130572217
Expand Down
3 changes: 1 addition & 2 deletions letters/admin_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ def get_objects_with_date(model):


def get_source_lookups():
sources = set([doc_source for doc_source in DocumentSource.objects.all()])
return [(source.id, source.name) for source in sources]
return DocumentSource.objects.values_list('id', 'name')


# Get all Correspondents associated with a particular DocumentSource
Expand Down

0 comments on commit a859263

Please sign in to comment.