Skip to content

Commit

Permalink
ADX-206 fixed warning from NullableCharField
Browse files Browse the repository at this point in the history
RemovedInDjango110Warning: SubfieldBase has been deprecated.
  • Loading branch information
Jill Vogel committed Jan 20, 2016
1 parent 23458e8 commit 8b07008
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion django_adelaidex/util/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# http://bitofpixels.com/blog/unique-on-charfield-when-blanktrue/
class NullableCharField(models.CharField):
description = "CharField that stores NULL but returns ''"
__metaclass__ = models.SubfieldBase

def to_python(self, value):
return value or ''
def get_prep_value(self, value):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='django-adelaidex-util',
version='0.4',
version='0.4.1',
packages=['django_adelaidex', 'django_adelaidex.util'],
include_package_data=True,
license='Copyright The University of Adelaide, All rights reserved',
Expand Down

0 comments on commit 8b07008

Please sign in to comment.