Permalink
Browse files

empty_strings_allowed set because emtpy causes

issues with uuid field in postgres.
  • Loading branch information...
Matt George
Matt George committed Dec 1, 2011
1 parent 961dcbe commit b17766a1a163b67a80801f93bd7ca71aeb07281f
Showing with 1 addition and 0 deletions.
  1. +1 −0 uuidfield/fields.py
View
@@ -19,6 +19,7 @@ class UUIDField(Field):
# TODO: support UUID types in Postgres
# TODO: support binary storage types
# __metaclass__ = models.SubfieldBase
+ empty_strings_allowed = False
def __init__(self, version=4, node=None, clock_seq=None, namespace=None, name=None, auto=False, *args, **kwargs):
assert version in (1, 3, 4, 5), "UUID version %s is not supported." % (version,)

0 comments on commit b17766a

Please sign in to comment.