Re: Django Rest Framework Validation Order Issue

2020-06-30 Thread Brent O'Connor
Carl, I created another branch on my example project that solves this issue by overriding two DRF methods (to_internal_value and run_validation). I'm probably going to create an issue in DRF that sugg

pagination.CursorPagination - aws aurora postgres

2020-06-30 Thread Ross C
Hi there, Long time DRF user of many years and i seem to have found a strange behaviour in AWS rds aurora psotgres. I have it working correctly locally, returns data as expected however on deploy to an aws environment the cursor returns None If i disable pagination entirely, data is returne

Re: Django Rest Framework Validation Order Issue

2020-06-30 Thread Brent O'Connor
For anyone that might come across this thread, I went ahead and created an issue for this on Github. On Friday, June 26, 2020 at 5:08:03 PM UTC-5, Brent O'Connor wrote: > > I created an example project >

Re: Django Rest Framework Validation Order Issue

2020-06-30 Thread Carl Nobile
Brent, overriding the 'to_internal_value' method is normal and encouraged, however, the 'run_validation' shouldn't generally be overridden, what you can override is the 'validate' method which is called by 'run_validation'. ~Carl On Tue, Jun 30, 2020 at 5:51 PM Brent O'Connor wrote: > For anyone

Re: Django Rest Framework Validation Order Issue

2020-06-30 Thread Brent O'Connor
I guess my point is that I don't feel like I should have to override anything and this should be DRF's default behavior. 🙂 Thank you for pointing out that `validation` should be the method that should be used. On Tue, Jun 30, 2020, 5:42 PM Carl Nobile wrote: > Brent, overriding the 'to_internal_