Re: Do some task using models in a view before a request is executed.

2018-08-03 Thread Christian
Thanks! Am Donnerstag, 2. August 2018 15:18:36 UTC+2 schrieb Jason: > > DRF viewsets provide default implementations of list (GET resource/) and > retrieve (GET resource/id). You can just reimplement those methods and > call `rfm_update` in them. > -- You received this message because you are

Re: Do some task using models in a view before a request is executed.

2018-08-02 Thread Jason
DRF viewsets provide default implementations of list (GET resource/) and retrieve (GET resource/id). You can just reimplement those methods and call `rfm_update` in them. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

Do some task using models in a view before a request is executed.

2018-08-02 Thread Christian
Hi there, I'm kind of a novice in django and like to call rfm_update before the get request in the RFM Viewset will executed, but no surprise the migrate doesn't work for a new deployment. What is the best practice to do something like rfm_update so that migrate works. Thanks in advance, Chr