hut-django-models
Private package library
Language:
Private packages:
Overview
Private package library used across multiple applications.
Repository
- GitHub: https://github.com/Hut42/hut-django-models
- Language: Python
- Created: 2022-03-10
- Last Updated: 2022-12-01
Documentation
hut-django-models
Common Django models that are used by Hut.
============ HutBaseModel
Base model that all models should inherit from.
Adds core base functionality to all models in an application.
A uuid field will be used in APIs etc. in order to hide the numerical PK.
The created_by, created_at, updated_by and created_at are all fields
used for a simple audit trail type operation.
history is a hook into https://github.com/jazzband/django-simple-history
which will track changes at an object level.
Add it to the middleware classes in your settings.py::
MIDDLEWARE = (
...,
'django_currentuser.middleware.ThreadLocalUserMiddleware',
)
[Full documentation available in the repository README]
Usage
This library is used by 2 application(s):
- flux-policy-documents-service - Django REST based web service for Sterling Policy Documents
- flux-worker-service - Worker service for Adrian Flux brand content variables.