Hi all, I have a loop over fields (f = self._meta.get_field(name)) of a model. If a field is a ForeignKey, I need to follow the ForeignKey and get the model and application referenced by the fk. Eg:
class Address: city = ForeignKey(City,...) ... f = Address._meta.get_field('city') now I have f, how can I get to City._meta? [The reason I want this is to build an url to edit Foreign Key, as in Admin interface.] thanks in advance sandro *:-) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [EMAIL PROTECTED] 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 -~----------~----~----~----~------~----~------~--~---