thank you, my test now passes

btw there is a missing quote in the recipe

    def __repr__(self):
        return '<Game "%s"> % self.name

should be

    def __repr__(self):
        return '<Game "%s">' % self.name



On Jan 10, 4:17 pm, Gaetan de Menten <[email protected]> wrote:
> On Mon, Jan 10, 2011 at 15:39, NiL <[email protected]> wrote:
> > I tried this recipe
>
> >http://elixir.ematia.de/trac/wiki/Recipes/UsingEntityForOrderedList
>
> > in the form of a unittest available here:
>
> >http://pastebin.com/3meWrbA4
>
> > if fails with a KeyError: 'game_references'
>
> > any idea would be appreciated
>
> Well, the error message is not particularily clear... But the mistake
> was in the recipe. I've just fixed it.
>
> In your case, you need to change your _create_game_reference function
> to something like this:
>
> def _create_game_reference(game):
>     return GameReference(game=game)
>
> --
> Gaëtan de Menten

-- 
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en.

Reply via email to