Skip to content

Commit e05e31b

Browse files
committed
remove old Django code
1 parent 0a584e2 commit e05e31b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cities/models.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from django.contrib.gis.db.models import PointField
1616
from django.contrib.gis.geos import Point
1717
from django.db import models, transaction
18+
from django.db.models import Manager as GeoManager
1819
from model_utils import Choices
1920

2021
from .managers import AlternativeNameManager
@@ -33,11 +34,6 @@
3334
]
3435

3536

36-
if DJANGO_VERSION < 2:
37-
from django.contrib.gis.db.models import GeoManager
38-
else:
39-
from django.db.models import Manager as GeoManager
40-
4137
slugify_func = SLUGIFY_FUNCTION
4238

4339

0 commit comments

Comments
 (0)