1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #10728 -- corrected subclassing of Fields who use the SubfieldBase metaclass. Thanks to G2P and George Sakkis for their work on the patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@14443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Alex Gaynor
2010-11-02 18:40:53 +00:00
parent 352deb0915
commit 222c732616
4 changed files with 18 additions and 5 deletions

View File

@@ -52,6 +52,9 @@ class SmallField(models.Field):
return []
raise TypeError('Invalid lookup type: %r' % lookup_type)
class SmallerField(SmallField):
pass
class JSONField(models.TextField):
__metaclass__ = models.SubfieldBase