Skip Navigation
Don't use class methods on Django models
  • 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...

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)MR
    mrgreen @programming.dev
    Posts 0
    Comments 3