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

Django

423 readers
1 users here now

Django Project

Django Community

Django Ecosystem

Jobs
Learning/Docs
Podcasts:
Related Fediverse communities
Feeds

founded 1 year ago
MODERATORS
top 2 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 2 points 11 months ago

Feel like the post's explanation for why was a little lacking. But I don't think I was going to use class methods on my models anyway, so that works out.

[โ€“] [email protected] 2 points 11 months 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...