> Wouldn't it create INNER JOIN query on a_type table? AFAIR it would and it's
> a bit overhead.
> But surely it is a better solution than mine one, thanks for that.
Well, in that case, I think your problem is that your AType PK isn't
the mnemo field, but some integer field, so type_id is integer, not
string.
Try defining it as
mnemo = models.CharField(u'Mnemocode', max_length=31, null=True,
unique=True, primary_key=True)
but I'm not sure if this is the behavior you want
--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde
|_|0|_|
|_|_|0|
|0|0|0|
(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment