You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I am concerned, DRF does not automatically support checking for database constraints defined in model._meta.constrainst when it comes to serializer-level validation. Is there any reason why not?
I am really determined to create a PR for this feature, but realized that DRF doesn't accept any new feature:
At this point in its lifespan we consider Django REST framework to be feature-complete. We focus on pull requests that track the continued development of Django versions, and generally do not accept new features or code formatting changes.
I think this feature was added to Django a few versions back but that arrived at the time when DRF development slowed down, so support wasn't added until recently. There is currently partial support for it and some improvements were recently contributed, but some are unreleased:
I specifically mean check constraints which are not checked. The problem is database integrity errors occur if check constraints are not handled during development and inside serializer. I am pleased and eager to contribute to this by developing support for check constraint handling inside serializer.
I specifically mean check constraints which are not checked. The problem is database integrity errors occur if check constraints are not handled during development and inside serializer. I am pleased and eager to contribute to this by developing support for check constraint handling inside serializer.
Anything that is in new django versions but not fully supported in DRF are high prority for us. so you can start working on missing django features in DRF. because those are needed for compatibility issues. ping me with a draft PR and here is a somewhat related issue #7173
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
🎥 Watch TMZ Live
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As far as I am concerned, DRF does not automatically support checking for database constraints defined in
model._meta.constrainst
when it comes to serializer-level validation. Is there any reason why not?I am really determined to create a PR for this feature, but realized that DRF doesn't accept any new feature:
Why is that?
Beta Was this translation helpful? Give feedback.
All reactions