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
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
-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:
>
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)
4 matches
Mail list logo