Skip to content
Browse files

Merge pull request #1 from brianglass/fix-uuid-auto-is-false

Fix UUID Field when auto=False
  • Loading branch information...
2 parents b274658 + fa7d2c9 commit 5fe454bb27533a36e4c95cc002e344a77fb61286 @gugu committed Nov 9, 2012
View
BIN dist/django_uuid-0.1-py2.6.egg
Binary file not shown.
View
BIN dist/django_uuid-0.1-py2.7.egg
Binary file not shown.
View
BIN dist/django_uuid-0.1.tar.gz
Binary file not shown.
View
2 src/django_uuid/fields.py
@@ -15,8 +15,8 @@ class UUIDField(CharField):
def __init__(self, verbose_name=None, name=None, auto=True, version=1, node=None, clock_seq=None, namespace=None, **kwargs):
kwargs['max_length'] = 36
+ self.auto = auto
if auto:
- self.auto = True
kwargs['blank'] = True
kwargs['editable'] = kwargs.get('editable', False)
self.version = version

0 comments on commit 5fe454b

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