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

14 lines
374 B
Python
Raw Normal View History

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"]
class UserForm(forms.ModelForm):
class Meta:
model = User
2024-06-28 19:38:10 +00:00
fields = ['username', 'email', 'first_name', 'last_name']