#5648: __init__ of Models not overrideable
---------------------------------------------------+------------------------
Reporter: Armin Ronacher | Owner: nobody
Status: closed | Milestone:
Component: Database layer (models, ORM) | Version: SVN
Resolution: wontfix | Keywords:
Stage: Design decision needed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Changes (by mtredinnick):
* status: new => closed
* resolution: => wontfix
Comment:
Django is using the initialisation function on a class to create instances
of that class. That's what `__init__` is for. You can easily override it,
but you have to be able to accept the way a Model class is called, which
means accepting things matching the current signature. That's true
whenever you subclass something: if you pass it to something that expects
the parent, you have to match the parent's initialisation interface.
--
Ticket URL: <http://code.djangoproject.com/ticket/5648#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---