Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remplace GeoModelAdmin (déprécié sur django 5) par GISModelAdmin #588

Merged
merged 1 commit into from
Oct 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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