On Wed, Jan 21, 2009 at 4:37 PM, TeenSpirit83 <pasquale.alibe...@gmail.com>wrote:
> > I'm developing a little webapp starting from the contrib.admin > at the moment i manage a class in the model with a modeladmin class > but i need to edit the entries as a tabular inline of another class. > if i write both the inline and the modeladmin classes in admin.py and > try to register them both, django raises an error on the second > registrarion instruction sayoing the mode class is already registered. > is there a solution? > thanks Your post is a little short on details, so I am not sure what you are doing wrong. You should not register the inline model admin class. To do what you are asking you need a TabularInine that you specify (but not register) in the ModelAdmin where you want the inlines to appear, and a ModelAdmin, independent of the tabular inline class, that you register. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---