Skip to main content

django-model-mixin PyPi license

PyPi status PyPi version PyPi python version PyPi downloads PyPi downloads PyPi downloads

GitHub GitHub release GitHub release

Test codecov.io pre-commit.ci status gitthub.com

Docs

Check Demo Project

  • Check the demo repo on GitHub

Requirements

  • Python 3.9+ supported.
  • Django 3.2+ supported.

Setup

  1. Install from pip:
pip install django-model-mixin
  1. Modify settings.py by adding the app to INSTALLED_APPS:
INSTALLED_APPS = [
    "django.contrib.admin",
    "model_mixin",
]
  1. Modify your project models.py with needed imports and class extends:
from model_mixin.models import AuditModelMixin, PublishModelMixin


class MyCustomClass(AuditModelMixin, PublishModelMixin):
    pass
  1. Execute Django's command makemigrations inside your project's root:
python manage.py makemigrations
  1. Finally, execute Django's command migrate inside your project's root:
python manage.py migrate

Run Example Project

git clone --depth=50 --branch=django-model-mixin https://github.com/DLRSP/example.git DLRSP/example
cd DLRSP/example
python manage.py runserver

Now browser the app @ http://127.0.0.1:8000

Metadata

Release files for django-model-mixin 0.3.15

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-model-mixin 0.3.15
File Size Uploaded Provenance Actions
django_model_mixin-0.3.15.tar.gz 18.7 kB Without provenance Details for django_model_mixin-0.3.15.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-model-mixin 0.3.15
File Interpreter ABI Platform Actions
django_model_mixin-0.3.15-py3-none-any.whl Python 3 none any Details for django_model_mixin-0.3.15-py3-none-any.whl

Total release size: 38.4 kB

Release files / django_model_mixin-0.3.15.tar.gz

Download URL django_model_mixin-0.3.15.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fc622ab6d3bee79b032850069720b3fa96981242c46a5829561dd22facc69f43
BLAKE2b-256 checksum
How to use checksums
31aed81db947ab118686044de8417b244139321aa8abd3e41be2d5d454f0c369
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / django_model_mixin-0.3.15-py3-none-any.whl

Download URL django_model_mixin-0.3.15-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0115b5acab97fc707c8a3b3d2f2cc679db4d078ddf2bf8d5d13a2b1ca1132372
BLAKE2b-256 checksum
How to use checksums
34f2075c0f2b80481f03cedee4fb31c730e758b88bfe0c165d8d228a7998d22c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for django-model-mixin 0.3.15

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page