Jason NovingerM to Django · 1 year agoDon't use class methods on Django modelswww.b-list.orgexternal-linkmessage-square2fedilinkarrow-up19arrow-down10file-text
arrow-up19arrow-down1external-linkDon't use class methods on Django modelswww.b-list.orgJason NovingerM to Django · 1 year agomessage-square2fedilinkfile-text
minus-squaremrgreenlinkfedilinkarrow-up2·1 year agoThe reasoning does not seem that convincing. I also don’t create new instances from the Manager but instead use the normal constructor like this: instance = models.MyModel(...) # instead of something like models.objects.create(...) So I would want alternative constructors in the same place…
The reasoning does not seem that convincing. I also don’t create new instances from the Manager but instead use the normal constructor like this:
So I would want alternative constructors in the same place…