hi Andy,Thanks for your quick replay. I have been playing with EAV and
i quite like it so thanks for making the effort. in models.py
shouldn't there be
def get_choices(self): """ Returns a queryset of
choice objects bound to this schema. """ return
self.choice.all()
instead of current:
def get_choices(self): """ Returns a queryset of
choice objects bound to this schema. """ return
self.choices.all()
??
If you don't mind i have one more question: I have categorised
Entities so i can generate a different form (schema) depending on
Entity category. My question is what do i override to filter out
schemas i don't need when generating a form ?
greets,
W dniu 19 lutego 2012 12:02 użytkownik Andy Mikhailenko
<
neit...@gmail.com> napisał:Hello Mariusz,
On 18 February 2012 20:37, zzart <
mariusz.r...@gmail.com>
wrote:> Playing with the example:> [...]> Am I missing something ?
I guess you need a GenericRelation like in the tests[1] or somethingin
this vein.
By the way, I've just added a tox config to make sure that the
testsrun under both Python 2.6 and 2.7, and they do, so the automated
testsare currently the best reference material. The "grocery shop"
exampleis only tested manually sometimes, and I won't call this
> On 18 February 2012 20:37, zzart <
mariusz.raczyns...@gmail.com> wrote:
>
> > Playing with the example:
> > [...]
> > Am I missing something ?
>
> I guess you need a GenericRelation like in the tests[1] or something
> in this vein.
>
> By the way, I've just added a tox config to make sure that the tests
> run under both Python 2.6 and 2.7, and they do, so the automated tests
> are currently the best reference material. The "grocery shop" example
> is only tested manually sometimes, and I won't call this testing :-)
>
> [1]
https://bitbucket.org/neithere/eav-django/src/f654bd8bd4af/eav/tests....
>
> Good luck,
> Andy