Model crippled when defining properties with "__init__", help!

10 views
Skip to first unread message

regtech

unread,
Dec 15, 2018, 12:54:13 PM12/15/18
to django-users
Hello every one!
I am using django, today i have a reqirement that was defining some properties on models,
so i wrote the "__init__" to do that in my Model class, and then i found that i was lost the code prompting
of the model class when i using them by write "MyFooModel( a_filed=...",
and the model object doesn't works when set or get value.
The machinism of code prompting was really amazing, but may be too complex to my situation,
i've no idea about how it effects after i read the code ( of the class django.db.models.ModelBase ).

so, are there anyone could help me ?
Reply all
Reply to author
Forward
0 new messages