Skip to content

Commit

Permalink
Drop outdated backport files
Browse files Browse the repository at this point in the history
django-leaflet doesn't support Django < 1.8 anyway.
  • Loading branch information
claudep committed May 14, 2020
1 parent bd2d5e0 commit cae8f42
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 398 deletions.
368 changes: 0 additions & 368 deletions leaflet/forms/backport.py

This file was deleted.

7 changes: 1 addition & 6 deletions leaflet/forms/fields.py
@@ -1,14 +1,9 @@
from __future__ import unicode_literals

import django
from django.contrib.gis.forms.fields import GeometryField as BaseGeometryField

from .widgets import LeafletWidget

if django.VERSION >= (1, 6, 0):
from django.contrib.gis.forms.fields import GeometryField as BaseGeometryField
else:
from .backport import GeometryField as BaseGeometryField


class GeometryField(BaseGeometryField):
widget = LeafletWidget
Expand Down

0 comments on commit cae8f42

Please sign in to comment.