Hi all,
I have a ForeignKey object (designset) as part of a model class and
can get the project value associated with foreignkey object using...
def project(self):
project = self.designset.project
return project
I can then use this created field in the list_display options for the
admin site - great!
but when I try and use in the list_filter I get the error:
FieldDoesNotExist
Compound has no field named 'project'
This is fair enough but is there a cunning way to get this foreignkey
value passed into the filters menu????
Thanks - any help greatly appreciated!
Martin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---