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']