﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
15174	Add a required inline on django admin	zodman	nobody	"For example: If you have a User and  UserProfile, you can set up the Admin site to display an inline for the UserProfile.

If the user provides data for the UserProfile, it will be validated and saved. 

However, an empty form also passes validation -- there's no easy way to require that the user populate the UserProfile inline.

More details and description [http://stackoverflow.com/questions/1206903/how-do-i-require-an-inline-in-the-django-admin on Stack Overflow].

I propouse to use some like this:
{{{
class ProfileInline(admin.StackedInline):
    """"""
    Allows profile to be added when creating user
    """"""
    model = Profile
    extra = 1
    max_num = 1
    formset = RequiredInlineFormSet
    formset_required = True
}}}"		new	contrib.admin	dev			inlines,formset,admin		Unreviewed	0	0	0	0	0	0
