On 28-May-07, at 11:24 PM, Lic. José M. Rodriguez Bacallao wrote:

> So, if I add a ForeignKey field to my model it simply add a  
> "related_model_id" column to my table, let me ask something, how  
> django enforce that when I add a repeated value to that field it  
> will an error, I mean, a foreign key value that does not exist in  
> the original table in a one to many relationship?

even if django doesnt, postgres will barf - dont know about mysql or  
sqlite

-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/



--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

  • Re: django models Lic. José M. Rodriguez Bacallao
    • Re: django models Kenneth Gonsalves

Reply via email to