On 20 févr. 09, at 11:11, burcu hamamcıoğlu <borco...@gmail.com>  
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 defined primary key. If you want a  
GUID PK, simply create a guid field declared as pk in your model, you  
can name it 'id' if you wish to. 
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to