project/apps/django_backend_template/controllers/core/controller_template.py
def create_object_with_params(self):
        """
        Basic (Transactional) method for create a instance of the self.model.

        :@raises {APIException} ModelBadRequest - 400 malformed request
        :@returns {Model Instance} - instance of the model
        """
        try:
            serializer = self.serializer(data=self.params)
            if not serializer.is_valid():
                exception_name = "%sBadRequest" % (self.model.__name__)
                raise getattr(import_module(self.exception_path), exception_name)
            return serializer.save()
        except Exception as e:
            raise e

        Basic (Transactional) method for create a instance of the self.model.

        :@raises {APIException} ModelBadRequest - 400 malformed request
        :@returns {Model Instance} - instance of the model
        
Basic (Transactional) method for create a instance of the self.model.
:@raises {APIException} ModelBadRequest - 400 malformed request
:@returns {Model Instance} - instance of the model
Basic ( Transactional ) method for create a instance of the self . model . : @raises { APIException } ModelBadRequest - 400 malformed request : @returns { Model Instance } - instance of the model
def create_object_with_params(self):
        try:
            serializer = self.serializer(data=self.params)
            if not serializer.is_valid():
                exception_name = "%sBadRequest" % (self.model.__name__)
                raise getattr(import_module(self.exception_path), exception_name)
            return serializer.save()
        except Exception as e:
            raise e
def create_object_with_params ( self ) : try : serializer = self . serializer ( data = self . params ) if not serializer . is_valid ( ) : exception_name = "%sBadRequest" % ( self . model . __name__ ) raise getattr ( import_module ( self . exception_path ) , exception_name ) return serializer . save ( ) except Exception as e : raise e
Basic (Transactional) method for create a instance of the self.model.
Basic ( Transactional ) method for create a instance of the self . model .
"""
        Basic (Transactional) method for create a instance of the self.model.

        :@raises {APIException} ModelBadRequest - 400 malformed request
        :@returns {Model Instance} - instance of the model
        """
self