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

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.14

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.14
File Size Uploaded Provenance Actions
django_model_mixin-0.3.14.tar.gz 18.4 kB Without provenance Details for django_model_mixin-0.3.14.tar.gz

Built distribution (wheel)

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

Total release size: 38.2 kB

Release files / django_model_mixin-0.3.14.tar.gz

Download URL django_model_mixin-0.3.14.tar.gz
Size 18.4 kB
Tags Source
SHA-256 checksum
How to use checksums
4ec259a815bb8f90fab0b29103aabee4de782918ef5cad8cd60fc56c88681c53
BLAKE2b-256 checksum
How to use checksums
06a42edfc6936b18fcbd8991bacd1e41ec7d53d14caa7cc24671d603db918eeb
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.14-py3-none-any.whl

Download URL django_model_mixin-0.3.14-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
148461ac2cecca3dc82a0277436879745c9b6f46b5d95bce66f4b998c740eb3b
BLAKE2b-256 checksum
How to use checksums
899baeac765a5fd6b3a0e4fca5547f7c83ea9261251344d6329e2a4e0ec04fa2
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.14

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