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.
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
2 matches
Mail list logo