2024-06-28 21:35:29 +02:00
|
|
|
from django import forms
|
|
|
|
from django.contrib.auth.models import User
|
|
|
|
from .models import UserProfile
|
|
|
|
|
|
|
|
class UserProfileForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = UserProfile
|
2024-11-17 22:09:30 +01:00
|
|
|
fields = ['show_mature', "items_per_page", "post_seen_delay"]
|
2024-06-28 21:35:29 +02:00
|
|
|
|
|
|
|
class UserForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = User
|
2024-06-28 21:38:10 +02:00
|
|
|
fields = ['username', 'email', 'first_name', 'last_name']
|