Python does not have static/public/private objects like java does.
Whats happening is that self.date_form is referencing date_form and
that happens in the __init__ method
On Nov 14, 2:31 pm, johnny <[EMAIL PROTECTED]> wrote:
> I have seen forms without the "self" in front of the fields, eg. more
I have seen forms without the "self" in front of the fields, eg. more
like this date_from = forms.DateField() and never self.date_form
=forms.DateField(). If you include self.date_form, then date_form
becomes an attribute of an instance rather than a attribute of a
class.
What confusing me is th
2 matches
Mail list logo