Задать вопрос

Тел: +7 965 3737 888

449

Просмотров

0

Ответов

Improved User Admin

<p>Helper function which adds some niceties to the auth/user admin views. Needs django 1.2 to work.</p>
<h3>Usage</h3>
<p>Define a UserProfile class and set AUTH_PROFILE_MODULE as per the <a href="http://docs.djangoproject.com/en/dev/topics/auth/#storing-additional-information-about-users">django docs</a></p>
<p>In your admin.py file (or anywhere else) add the following:</p>
from models import UserProfile
from [path to snippet] import upgrade_user_admin

upgrade_user_admin(UserProfile)

Вопрос полезен? Да0/Нет0
file_3490.py(1.9Кб)
None