Hi, I'm having some trouble with these models:
class Section(GenericDoc):
#GenericDoc is a subclass of meta.Model, no keys, just
plain char and datefields
parent = meta.ForeignKey('self', blank=True, null=True,
related_name='child)
image = meta.ForeignKey(Image)
....
....
class Mailing(GenericDoc):
date
receivers = meta.ManyToManyField(auth.Group)
class Article:
section = meta.ForeignKey(Section)
mailing = meta.ForeignKey(Mailing)
image = meta.ForeignKey(Image)
...
...
Everything works as excepted on the admin interface. But when I try to
implement the viewing logic on my views it's not working as excepted.
I'm using a Section instance's get_article_list method and no output
was being made (no exceptions thrown, though). I tried debugging the
models through the interpreter and my Section instance didn't have the
get_article_list method (no wonder no articles where being
displayed...). Strangely enough, the docs @
/admin/doc/models/myapp.section/ assure me it should have have it.
Help would be greatly appreciated.
Thanks, Alberto