On 25/01/2014 7:31am, Alex Thomas wrote:
I tried adding unique=True to voyage_id but that did not have any
effect.  I later found somewhere in the docs that specifying is not
necessary.  So I am still in the same situation.

Is it possible to have unique=True together with null=True and blank=True???

In theory that is mutually incompatible. Two records with a blank voyage_id have the same voyage_id therefore voyage_id is not unique. I'm not sure but I have a feeling the ORM permits this for normal operations but it would probably break loaddata.


On Thursday, January 23, 2014 4:03:34 PM UTC-5, Alex Thomas wrote:

    I have already created a stackoverflow question on this and have
    only received one (*incorrect*) response.  For the sake of time I am
    just linking that question which has all the details.

    
http://stackoverflow.com/questions/21151544/django-loaddata-with-natural-keys-not-querying-correct-forign-key
    
<http://stackoverflow.com/questions/21151544/django-loaddata-with-natural-keys-not-querying-correct-forign-key>


    -Alex

--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/aa2a7cac-d7fb-4855-a356-5731897dff24%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/52E2EBC9.1060600%40dewhirst.com.au.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to