Re: Trying to reference a foreignKey in a modelAdmin class

2009-07-28 Thread irishsteve
Karen, Luke, thank-you both for replying. Luke, there isn't an error message as such, it's just that the Entry model disappears from the admin. If I try to go directly to an entry page URL I get a 404. As soon as I go back to using list_filter = ('competition', 'division') it's ok. I've tried ('C

Re: Trying to reference a foreignKey in a modelAdmin class

2009-07-27 Thread Karen Tracey
On Mon, Jul 27, 2009 at 6:01 PM, irishsteve wrote: > > Hi > > I'm new to Django, so thanks in advance for taking the time to help > me! I can't work out how to reference a foreignKey in the list_filter > method. > > Here are the two relevant objects from my model: > > [snip] Everything is workin

Re: Trying to reference a foreignKey in a modelAdmin class

2009-07-27 Thread Luke Seelenbinder
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What error exactly is it throwing? I noticed this: is it supposed to be: list_filter('Competition.startDate', 'Division')? Hope that helps. We really need the error it is throwing to more accurately diagnose and repair. Luke S. irishsteve wrote: >

Trying to reference a foreignKey in a modelAdmin class

2009-07-27 Thread irishsteve
Hi I'm new to Django, so thanks in advance for taking the time to help me! I can't work out how to reference a foreignKey in the list_filter method. Here are the two relevant objects from my model: class Competition(models.Model): name = models.CharField("Event title", max_length=200)