can I use methods of methods in Django?
Like so:
class Car(models.Model):
producer = models.ForeignKey(CarProducer)
country_of_origin = producer.country_of_origin
This doesn't seem to work. Is there a special syntax for this?
Jaroslav
--
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