Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made GeoDjango GeometryField stop accepting a 'null' keyword argument…

… as per its deprecation in 1.5.
  • Loading branch information...
commit 425a4292083c7355a2a4ef9676f605a9c3b8fe70 1 parent 7379d9a
@ramiro ramiro authored
Showing with 0 additions and 6 deletions.
  1. +0 −6 django/contrib/gis/forms/fields.py
View
6 django/contrib/gis/forms/fields.py
@@ -1,7 +1,5 @@
from __future__ import unicode_literals
-import warnings
-
from django import forms
from django.utils import six
from django.utils.translation import ugettext_lazy as _
@@ -34,10 +32,6 @@ def __init__(self, **kwargs):
# defaults (e.g., allow None).
self.srid = kwargs.pop('srid', None)
self.geom_type = kwargs.pop('geom_type', self.geom_type)
- if 'null' in kwargs:
- kwargs.pop('null', True)
- warnings.warn("Passing 'null' keyword argument to GeometryField is deprecated.",
- DeprecationWarning, stacklevel=2)
super(GeometryField, self).__init__(**kwargs)
self.widget.attrs['geom_type'] = self.geom_type
Please sign in to comment.
Something went wrong with that request. Please try again.