Modele Discipline¶
- class api.models.discipline.Discipline(*args, **kwargs)¶
Bases :
ModelModèle représentant une discipline sportive.
Une discipline est une catégorie de sport (par exemple : natation, athlétisme, etc.) qui peut contenir plusieurs épreuves.
- Variables:
nom – (str) Nom de la discipline sportive
icone – (str) Chemin ou nom de l’icône représentant la discipline
epreuves – (Epreuve[]) Liste des épreuves associées
- nom¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- icone¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- epreuves¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.childrenis aReverseManyToOneDescriptorinstance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()defined below.