Star! Thanks for that, I'd tried doing it and failed - but wasn't sure where it was going wrong.
Have done it now and am moving onwards. Cheers On Aug 10, 11:17 am, nostradamnit <sam.cranf...@gmail.com> wrote: > It means you remove the line that says admin.site.register(Choice), as > the choices will be integrated in the Poll admin page now. > > On Aug 10, 11:28 am, egrommet <egrom...@gmail.com> wrote: > > > I've just > > reachedhttp://docs.djangoproject.com/en/1.0/intro/tutorial02/#adding-related... > > in the tutorial and am trying then to follow on. > > > I've hit the par "Remove the register() call for the Choice model. > > Then, edit the Poll registration code to read: > > class ChoiceInline(admin.StackedInline): > > model = Choice > > extra = 3 > > > class PollAdmin(admin.ModelAdmin): > > fieldsets = [ > > (None, {'fields': ['question']}), > > ('Date information', {'fields': ['pub_date'], 'classes': > > ['collapse']}), > > ] > > inlines = [ChoiceInline] > > > admin.site.register(Poll, PollAdmin)" > > > But I'm lost, not quite sure what remove the register() call means and > > when I try deleting that line the whole thing goes pear shaped. > > Anybody got an example of what the polls admin.py file should look > > like? > > > Thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---