mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.8.x] Added UUIDField.deconstruct()
Backport of 0f54cf28c0 from master
This commit is contained in:
@@ -2374,6 +2374,11 @@ class UUIDField(Field):
|
||||
kwargs['max_length'] = 32
|
||||
super(UUIDField, self).__init__(**kwargs)
|
||||
|
||||
def deconstruct(self):
|
||||
name, path, args, kwargs = super(UUIDField, self).deconstruct()
|
||||
del kwargs['max_length']
|
||||
return name, path, args, kwargs
|
||||
|
||||
def get_internal_type(self):
|
||||
return "UUIDField"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user