hut-django-models

Private package library

Overview

Private package library used across multiple applications.

Repository

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):

Last modified February 5, 2026: Adds proposal summary (2c393ca)