Base Classes
EntityModel
- class erp_framework.base.models.EntityModel(*args, **kwargs)[source]
The Main base for ERP framework static models Example: Client , Expense etc..
- get_next_slug(suggestion=None)[source]
Get the next slug If it’s a new instance and the slug is not provided, we try and attempt a serial over the already added slugs in relation to the model :return:
- save(*args, **kwargs)[source]
Save the current instance. Override this in a subclass if you want to control the saving process.
The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.