I have two models, model A and model B ,
model A like this
CUSTOMER_NAME = (
(IBM, 'IBM'),
(GSMC, 'GSMD'),
(CSMC, 'CSMC'),
(HJTC, 'HJTC'),
customer_name = models.IntegerField(choices = CUSTOMER_NAME, default = IBM,)
activity_type = models.IntegerField(choices = ACTIVITY_TYPE, )
I want the constant CUSTOMER_NAME query from model B, how can I do that,
when I make a query in model A main body, like this
entity_id = ToolDetail.objects.all()
it tell me entity_id is not defined....how can I make this
query...someone help me.
--
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.