Files
training.django/source/orm/library/forms/person.py
Steve Kossouho e3ebf6bf4f Add documentation and source
Added documentation, source and extra files.
2025-07-02 20:26:50 +02:00

16 lines
331 B
Python

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