It's too inconvenient to paste the code in the email, I'll just copy a
StackOverFlow link.
https://stackoverflow.com/questions/72251670/how-to-construct-nested-queryset-with-django-orm
Ignoring the `DRF` part, I want to construct an `object` like this, how to
do it?
--
You received this messa
Copy from:
https://stackoverflow.com/questions/71231549/how-to-display-models-full-clean-validationerror-in-django-admin
Question:
https://docs.djangoproject.com/en/4.0/ref/models/instances/#validating-objects
from django.core.exceptions import ValidationError
try:
article.full_clean
I rewrited SelfModel.save() to do that.
But I feel it wasn't a good way.
So , I tried to create a CustomField to do this , but It looks like some
wrong.
It can't render a hex str in my url , how can I fix it ?
should I rewrite get_db_prep_value() or get_lookups() ?
*class BinaryHex
3 matches
Mail list logo