Re: Force the user to add an instance of some InlineModelAdmin when adding a model

2012-04-19 Thread Daniel Sokolowski
From: Oscar Mederos Sent: Thursday, April 19, 2012 7:24 AM To: django-users@googlegroups.com Subject: Force the user to add an instance of some InlineModelAdmin when adding a model I have a UserAdmin, and I defined a UserProfileInline like this: - from ... from django.contrib.auth.

Force the user to add an instance of some InlineModelAdmin when adding a model

2012-04-19 Thread Oscar Mederos
I have a UserAdmin, and I defined a UserProfileInline like this: - from ... from django.contrib.auth.admin import UserAdmin as UserAdmin_ class UserProfileInLine(admin.StackedInline): model = UserProfile max_num = 1 can_delete = False verbose_name = 'Profile' ver