Re: Query on building a business logic layer using django rest framework

2021-09-02 Thread Umair Ramzan
You can always use the functions avaible on Django Queryset and Models. You can build your business logic by manipulating the data. a better way to do this is to separate your business logic from the view and models. you can always write a function let's say "def my_business_logic" with all the

Re: Query on building a business logic layer using django rest framework

2021-09-02 Thread Deepak Kotian
Just to elaborate, primarily, I am keen looking at a lot of procedural kind of validation/checks like, if data is not found in 'x' table, then insert in 'y' table from the UI form data else insert in 'y' table from the 'x' data There could be more such if & else with multiple data Could