1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-02-06 07:13:00 +00:00
nk20/apps/member/forms.py

16 lines
433 B
Python
Raw Normal View History

2019-07-08 13:59:31 +02:00
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2018-2019 by BDE ENS Paris-Saclay
# SPDX-License-Identifier: GPL-3.0-or-later
2019-08-11 16:22:52 +02:00
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
from django.contrib.auth.models import User
from django import forms
2019-07-08 13:59:31 +02:00
2019-08-11 16:22:52 +02:00
from .models import Profile
2019-07-08 13:59:31 +02:00
2019-08-11 16:22:52 +02:00
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
fields = '__all__'
2019-08-11 17:39:05 +02:00
exclude = ['user']