I solved it , thanks :)
20 Şubat 2009 Cuma 14:08 tarihinde Veeravendhan sakkarai <
veeravend...@gmail.com> yazdı:
>
> You just define your primary key field in the models, you can over come.
> Also we can auto generate UUID. like the autoincrimint id field.
>
>
>
> On Fri, Feb 20, 2009 at 3:41 PM
You just define your primary key field in the models, you can over come.
Also we can auto generate UUID. like the autoincrimint id field.
On Fri, Feb 20, 2009 at 3:41 PM, burcu hamamcıoğlu wrote:
> I want to define a custom id field, that holds a guid (uuid). But how can i
> override the defau
I defined this field in my model like this.
id = models.SlugField(max_length = 36, default = (lambda:
str(uuid.uuid4())), db_index = True,primary_key=True,unique = True)
But when i try to add a object from admin interface, I got an error message
like "Please correct the errors below. "
But there
On 20 févr. 09, at 11:11, burcu hamamcıoğlu
wrote:
> I want to define a custom id field, that holds a guid (uuid). But
> how can i override the default id field? I want it to modified as
> guid..
>
As indicated in the documentation, the 'id' field is only
aurogenerated when a model has no
I want to define a custom id field, that holds a guid (uuid). But how can i
override the default id field? I want it to modified as guid..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
5 matches
Mail list logo