Skip to content

Commit a2313c2

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7f71369 commit a2313c2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ Such use cases are why calling ``format_html()`` without any arguments or keywor
261261
-format_html("<marquee>{name}</marquee>".format(name=name))
262262
+format_html("<marquee>{name}</marquee>", name=name)
263263
264-
Replace deprecated ``OSMGeoAdmin`` and ``GeoModelAdmin`` classes
264+
Replace deprecated ``OSMGeoAdmin`` and ``GeoModelAdmin`` classes
265265
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
266266

267267
**Name:** ``gis_admin_deprecations``

src/django_upgrade/fixers/gis_admin_deprecations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Rename OSMGeoAdmin to GISModelAdmin in django.contrib.gis.admin.options
2+
Rename OSMGeoAdmin to GISModelAdmin in django.contrib.gis.admin.options
33
due to deprecation on Django 5.0:
44
https://docs.djangoproject.com/en/5.0/releases/5.0/#features-removed-in-5-0
55
"""

tests/fixers/test_gis_admin_deprecations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
def test_no_deprecated_alias():
1414
check_noop(
1515
"""\
16-
from django.contrib.gis.admin.options import GeoAdmin
16+
from django.contrib.gis.admin.options import GeoAdmin
1717
18-
GeoAdmin
18+
GeoAdmin
1919
""",
2020
)
2121

0 commit comments

Comments
 (0)