Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 Morales authored June 28, 2013

Showing 1 changed file with 0 additions and 6 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/gis/forms/fields.py
6  django/contrib/gis/forms/fields.py
... ...
@@ -1,7 +1,5 @@
1 1
 from __future__ import unicode_literals
2 2
 
3  
-import warnings
4  
-
5 3
 from django import forms
6 4
 from django.utils import six
7 5
 from django.utils.translation import ugettext_lazy as _
@@ -34,10 +32,6 @@ def __init__(self, **kwargs):
34 32
         # defaults (e.g., allow None).
35 33
         self.srid = kwargs.pop('srid', None)
36 34
         self.geom_type = kwargs.pop('geom_type', self.geom_type)
37  
-        if 'null' in kwargs:
38  
-            kwargs.pop('null', True)
39  
-            warnings.warn("Passing 'null' keyword argument to GeometryField is deprecated.",
40  
-                DeprecationWarning, stacklevel=2)
41 35
         super(GeometryField, self).__init__(**kwargs)
42 36
         self.widget.attrs['geom_type'] = self.geom_type
43 37
 

0 notes on commit 425a429

Please sign in to comment.
Something went wrong with that request. Please try again.