Add: basic forms for UserProfile/User options

This commit is contained in:
Aroy-Art 2024-06-28 21:35:29 +02:00
parent efe260f7c1
commit 61f524c685
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -0,0 +1,13 @@
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'] # Include any other user fields you want