Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>Is it true that whenever you try to add a custom
>property or a custom method to a form in a formset,
>that property/method gets actually assigned to the
>parent formset? I was first surprised to see it, but
>didn't have time to investigate, so left it the way
>it was. I works the say, just seems somewhat awkward.
>...Or is it just me again???
When you create new property or method in formset that property is assigned to the form set.
You cannot assign property or method to form that are contain in formset.
The only way to assign method or property to form in a formset is when that form is a class. You can open that class and add method and property to that form.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement