Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
whats-open
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
whats-open
Commits
a58ab3bc
Commit
a58ab3bc
authored
Feb 23, 2018
by
David Haynes
🙆
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'autocomplete-select' of git.gmu.edu:srct/whats-open into autocomplete-select
parents
f18ae0d5
48ef277b
Pipeline
#2146
passed with stage
in 1 minute and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
whats-open/api/admin.py
whats-open/api/admin.py
+4
-0
No files found.
whats-open/api/admin.py
View file @
a58ab3bc
...
...
@@ -33,6 +33,8 @@ class FacilityAdmin(admin.ModelAdmin):
'tapingo_url'
,
'phone_number'
,
'note'
,
'owners'
),
}),
)
autocomplete_fields
=
[
'main_schedule'
,
'special_schedules'
,
]
# despite the name of this method, ("change" seems to imply it would affect modify)
# it is called only when initially creating a model
...
...
@@ -88,6 +90,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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment