Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 19, 2024
1 parent 7f71369 commit a2313c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ Such use cases are why calling ``format_html()`` without any arguments or keywor
-format_html("<marquee>{name}</marquee>".format(name=name))
+format_html("<marquee>{name}</marquee>", name=name)
Replace deprecated ``OSMGeoAdmin`` and ``GeoModelAdmin`` classes
Replace deprecated ``OSMGeoAdmin`` and ``GeoModelAdmin`` classes
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

**Name:** ``gis_admin_deprecations``
Expand Down
2 changes: 1 addition & 1 deletion src/django_upgrade/fixers/gis_admin_deprecations.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Rename OSMGeoAdmin to GISModelAdmin in django.contrib.gis.admin.options
Rename OSMGeoAdmin to GISModelAdmin in django.contrib.gis.admin.options
due to deprecation on Django 5.0:
https://docs.djangoproject.com/en/5.0/releases/5.0/#features-removed-in-5-0
"""
Expand Down
4 changes: 2 additions & 2 deletions tests/fixers/test_gis_admin_deprecations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
def test_no_deprecated_alias():
check_noop(
"""\
from django.contrib.gis.admin.options import GeoAdmin
from django.contrib.gis.admin.options import GeoAdmin
GeoAdmin
GeoAdmin
""",
)

Expand Down

0 comments on commit a2313c2

Please sign in to comment.