Commit 48ef277b authored by Daniel W Bond's avatar Daniel W Bond
Browse files

allows easier selection of facility schedules with django's build-in...

allows easier selection of facility schedules with django's build-in autocomplete YOU HAVE NO IDEA HOW COOL IT IS THAT THIS IS INCLUDED NOW
parent ec5b0b71
Pipeline #2139 passed with stage
in 1 minute and 48 seconds
......@@ -33,6 +33,8 @@ class FacilityAdmin(admin.ModelAdmin):
'tapingo_url', 'phone_number', 'note', 'owners'),
}),
)
autocomplete_fields = ['main_schedule', 'special_schedules', ]
class OpenTimeInline(admin.TabularInline):
"""
......@@ -80,6 +82,8 @@ class ScheduleAdmin(admin.ModelAdmin):
'promote_to_main')
}),
)
search_fields = ['name', ] # search terms for autcomplete
ordering = ['name', ] # autocomplete ordering
# https://docs.djangoproject.com/en/1.11/ref/contrib/gis/admin/#osmgeoadmin
OSMGeoAdmin.default_lon = -8605757.16502
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment