mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2024-12-04 07:24:04 +03:00
15 lines
296 B
Python
15 lines
296 B
Python
|
# -*- 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")
|