Skip to content

Commit

Permalink
Merge pull request #77 from Souleymane-T/feature-use-open-street-map
Browse files Browse the repository at this point in the history
Use admin openstreetmap for Pointfield
  • Loading branch information
lcognat committed Feb 24, 2021
2 parents 5003568 + 6393d5b commit b964224
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

### Changed

- nothing changed
- Use OpenStreetMap for admin PointField

### Removed

Expand Down
6 changes: 3 additions & 3 deletions concrete_datastore/admin/admin_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
MyCreationUserForm,
)
from concrete_datastore.concrete.models import divider_field_name
from django.contrib.gis.admin import GeoModelAdmin
from django.contrib.gis.admin import OSMGeoAdmin


class MetaUserAdmin(UserAdmin, GeoModelAdmin):
class MetaUserAdmin(UserAdmin, OSMGeoAdmin):
display_wkt = True
models_fields = ()
readonly_fields = ['uid', 'creation_date', 'modification_date']
Expand Down Expand Up @@ -69,7 +69,7 @@ def save_model(self, request, obj, form, change):
super(MetaUserAdmin, self).save_model(request, obj, form, change)


class MetaAdmin(GeoModelAdmin):
class MetaAdmin(OSMGeoAdmin):
display_wkt = True
models_fields = ()
date_fields = ('creation_date', 'modification_date')
Expand Down

0 comments on commit b964224

Please sign in to comment.