this post was submitted on 18 Dec 2023
9 points (100.0% liked)

Django

431 readers
2 users here now

Django Project

Django Community

Django Ecosystem

Jobs
Learning/Docs
Podcasts:
Related Fediverse communities
Feeds

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] mrgreen 2 points 1 year ago

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:

instance = models.MyModel(...)
# instead of something like
models.objects.create(...)

So I would want alternative constructors in the same place...