cookiecutter-django/{{cookiecutter.repo_name}}/{{cookiecutter.project_name}}/users/forms.py

15 lines
296 B
Python
Raw Normal View History

2013-08-16 15:54:47 +04:00
# -*- coding: utf-8 -*-
from django import forms
from .models import User
class UserForm(forms.ModelForm):
class Meta:
# Set this form to use the User model.
model = User
# Constrain the UserForm to just these fields.
fields = ("first_name", "last_name")