lostplaces-backend/source/lostplaces/lostplaces_app/forms.py

16 lines
377 B
Python

from django import forms
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
from .models import Explorer
class ExplorerCreationForm(UserCreationForm):
class Meta:
model = Explorer
fields = ('username', 'email')
class ExplorerChangeForm(UserChangeForm):
class Meta:
model = Explorer
fields = ('username', 'email')