Add documentation and source
Added documentation, source and extra files.
This commit is contained in:
15
source/orm/library/forms/person.py
Normal file
15
source/orm/library/forms/person.py
Normal file
@ -0,0 +1,15 @@
|
||||
from django import forms
|
||||
|
||||
from library.models import Person
|
||||
|
||||
|
||||
class PersonForm(forms.ModelForm):
|
||||
"""
|
||||
Django form for the Person model.
|
||||
|
||||
"""
|
||||
|
||||
class Meta:
|
||||
model = Person
|
||||
exclude = ("user", "uuid") # facultatif
|
||||
fields = "__all__" # soit "__all__" soit une liste de champs qui seront visibles
|
Reference in New Issue
Block a user