mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Added missing deconstruct() methods.
This commit is contained in:
parent
72479a2957
commit
621c25c419
5 changed files with 25 additions and 4 deletions
|
@ -115,6 +115,11 @@ class TeamField(six.with_metaclass(models.SubfieldBase, models.CharField)):
|
|||
def value_to_string(self, obj):
|
||||
return self._get_val_from_obj(obj).to_string()
|
||||
|
||||
def deconstruct(self):
|
||||
name, path, args, kwargs = super(TeamField, self).deconstruct()
|
||||
del kwargs['max_length']
|
||||
return name, path, args, kwargs
|
||||
|
||||
|
||||
@python_2_unicode_compatible
|
||||
class Player(models.Model):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue