Gallery-Archivist/archivist/apps/user/forms.py

13 lines
393 B
Python

from django import forms
from django.contrib.auth.models import User
from .models import UserProfile
class UserProfileForm(forms.ModelForm):
class Meta:
model = UserProfile
fields = ['show_mature', "items_per_page", "post_seen_delay"]
class UserForm(forms.ModelForm):
class Meta:
model = User
fields = ['username', 'email', 'first_name', 'last_name']