John Cronan
John Cronan
Here's my suggestion for further improvement: if a JSONField is being used to hold various values, like an "additional options" field, as I think is often the case, then the...
I've created a minimal recreation to verify that this works in Django normally, with model inheritance. You can have a `demo/models.py` like this: ``` class FooManager(models.Manager): def get_by_natural_key(self, slug): return...
I have found that, in my base model class, I want to add a UniqueTogether to the constraints in the `Meta`, with a condition of the form: ```~Q(instance_of=DerivedModel)``` where `DerivedModel`...
It's quite a simple addition. There is one disadvantage to this approach, which is that it assumes that the subfield will only be rendered with_label=False. I did this because it's...