Skip to content

Commit

Permalink
fix(admin): replace GeoModelAdmin by GISModelAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisig committed Sep 30, 2024
1 parent 9d04c59 commit 07c2918
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion metabase/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(StatDiagnostic)
class StatDiagnosticAdmin(admin.GeoModelAdmin):
class StatDiagnosticAdmin(admin.GISModelAdmin):
model = StatDiagnostic
list_display = (
"created_date",
Expand Down
2 changes: 1 addition & 1 deletion public_data/admin/CeremaAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(Cerema)
class CeremaAdmin(admin.GeoModelAdmin):
class CeremaAdmin(admin.GISModelAdmin):
model = Cerema
list_display = (
"city_insee",
Expand Down
2 changes: 1 addition & 1 deletion public_data/admin/CommuneAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(Commune)
class CommuneAdmin(admin.GeoModelAdmin):
class CommuneAdmin(admin.GISModelAdmin):
model = Commune
list_display = (
"insee",
Expand Down
2 changes: 1 addition & 1 deletion public_data/admin/CommunePopAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@admin.register(CommunePop)
class CommunePopAdmin(admin.GeoModelAdmin):
class CommunePopAdmin(admin.GISModelAdmin):
model = CommunePop
2 changes: 1 addition & 1 deletion public_data/admin/DepartementAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(Departement)
class DepartementAdmin(admin.GeoModelAdmin):
class DepartementAdmin(admin.GISModelAdmin):
model = Departement
list_display = (
"id",
Expand Down
2 changes: 1 addition & 1 deletion public_data/admin/EpciAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(Epci)
class EpciAdmin(admin.GeoModelAdmin):
class EpciAdmin(admin.GISModelAdmin):
model = Epci
list_display = (
"id",
Expand Down
2 changes: 1 addition & 1 deletion public_data/admin/OcsgeAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(Ocsge)
class OcsgeAdmin(admin.GeoModelAdmin):
class OcsgeAdmin(admin.GISModelAdmin):
model = Ocsge
list_display = (
"id",
Expand Down
2 changes: 1 addition & 1 deletion public_data/admin/OcsgeArtificialAreaAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@admin.register(ArtificialArea)
class OcsgeArtificialAreaAdmin(admin.GeoModelAdmin):
class OcsgeArtificialAreaAdmin(admin.GISModelAdmin):
model = ArtificialArea
2 changes: 1 addition & 1 deletion public_data/admin/OcsgeCommuneDiffAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@admin.register(CommuneDiff)
class OcsgeCommuneDiffAdmin(admin.GeoModelAdmin):
class OcsgeCommuneDiffAdmin(admin.GISModelAdmin):
model = CommuneDiff
2 changes: 1 addition & 1 deletion public_data/admin/OcsgeCommuneSolAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@admin.register(CommuneSol)
class OcsgeCommuneSolAdmin(admin.GeoModelAdmin):
class OcsgeCommuneSolAdmin(admin.GISModelAdmin):
model = CommuneSol
2 changes: 1 addition & 1 deletion public_data/admin/OcsgeDiffAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@admin.register(OcsgeDiff)
class OcsgeDiffAdmin(admin.GeoModelAdmin):
class OcsgeDiffAdmin(admin.GISModelAdmin):
model = OcsgeDiff
2 changes: 1 addition & 1 deletion public_data/admin/OcsgeZoneConstruiteAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@admin.register(ZoneConstruite)
class OcsgeZoneConstruiteAdmin(admin.GeoModelAdmin):
class OcsgeZoneConstruiteAdmin(admin.GISModelAdmin):
model = ZoneConstruite
2 changes: 1 addition & 1 deletion public_data/admin/RegionAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(Region)
class RegionAdmin(admin.GeoModelAdmin):
class RegionAdmin(admin.GISModelAdmin):
model = Region
list_display = (
"id",
Expand Down
2 changes: 1 addition & 1 deletion public_data/admin/ScotAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@


@admin.register(Scot)
class ScotAdmin(admin.GeoModelAdmin):
class ScotAdmin(admin.GISModelAdmin):
model = Scot
2 changes: 1 addition & 1 deletion public_data/admin/SudocuhAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(Sudocuh)
class SudocuhAdmin(admin.GeoModelAdmin):
class SudocuhAdmin(admin.GISModelAdmin):
model = Sudocuh
list_display = (
"nom_commune",
Expand Down
2 changes: 1 addition & 1 deletion public_data/admin/SudocuhEpciAdmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


@admin.register(SudocuhEpci)
class SudocuhEpciAdmin(admin.GeoModelAdmin):
class SudocuhEpciAdmin(admin.GISModelAdmin):
model = SudocuhEpci
list_display = (
"nom_epci",
Expand Down

0 comments on commit 07c2918

Please sign in to comment.