I have a model with a CharField field with a default value of uuid4:
f = models.CharField(default=uuid4, max_length=36, unique=True, blank=True)
and this is causing the following error:
Cannot successfully create field 'f' for model 'm': name 'UUID' is not defined.
running the migrate commmand! Ho can I fix this issue? so far I tried:
- to define a "wrapper function" in the module for uuid (ie: def getUUID())
- to set the default value of "f" by overriding the Model constructor
...but the problem remains :(
ps. I know that I can instruct south for custom fields, but I'm not using custom fields in my opinion :P