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