On Feb 5, 5:09 pm, Daniel Klein <bri...@gmail.com> wrote: > So I need to create the two teams for a new game instance when I > create the game instance? That just feels so clumsy.
Doesn't seem so terrible to me, but if you're likely to do it in several places you could use a custom ModelManager [1] with a create_game_and_teams() function to set everything up correctly. [1] http://docs.djangoproject.com/en/1.2/topics/db/managers/ BTW, when using super, it isn't necessary to pass 'self' explicitly; it will be prepended to the argument list automatically as with any other method call [2]. [2] http://docs.python.org/library/functions.html#super -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.