Gallery-Archivist/archivist/apps/user/forms.py
2024-06-28 21:38:10 +02:00

13 lines
374 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"]
class UserForm(forms.ModelForm):
class Meta:
model = User
fields = ['username', 'email', 'first_name', 'last_name']