Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • whats-open whats-open
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • SRCT
  • whats-openwhats-open
  • Issues
  • #61

Closed
Open
Created Sep 09, 2017 by David Haynes@dhaynes3🙆Owner

Set the default location for Location map

Summary

Currently when you want to create a new Location the default (x,y) is (0,0) which you then need to drag over to the fairfax campus.

You can set attributes in admin.py like so:

admin.OSMGeoAdmin.default_lon = -7963445
admin.OSMGeoAdmin.default_lat = -1850954
admin.OSMGeoAdmin.default_zoom = 17

Helpful Links

  • https://docs.djangoproject.com/en/1.11/ref/contrib/gis/admin/
Assignee
Assign to
Time tracking