mirror of https://gitlab.crans.org/bde/nk20
19 lines
503 B
Python
19 lines
503 B
Python
# -*- mode: python; coding: utf-8 -*-
|
|
# Copyright (C) 2018-2019 by BDE ENS Paris-Saclay
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
from django.contrib.auth.forms import UserChangeForm, UserCreationForm
|
|
from django.contrib.auth.models import User
|
|
from django import forms
|
|
|
|
from .models import Profile
|
|
|
|
class ProfileForm(forms.ModelForm):
|
|
"""
|
|
Forms pour la création d'un profile utilisateur.
|
|
"""
|
|
class Meta:
|
|
model = Profile
|
|
fields = '__all__'
|
|
exclude = ['user']
|