Django Pgtrigger

screenshot of Django Pgtrigger
django

Write Postgres triggers for your Django models

Overview:

django-pgtrigger is a tool that helps users implement Postgres triggers for their Django models. Triggers can efficiently solve complex problems like protecting operations on rows or columns, creating read-only models, soft-deleting models, and more. This tool eliminates the need for overridden methods, base models, or signal handling, making it easier to manage and maintain database behaviors.

Features:

  • Efficient Problem Solving: Solve complex issues reliably and succinctly.
  • Multiple Use Cases: Protect operations, create read-only models, soft-delete objects, enforce field transitions, and more.
  • No Overridden Methods Required: Easily implement triggers without overriding methods, handling signals, or using base models.
  • Compatibility: Works with Python 3.8 - 3.12, Django 4.2 - 5.1, Psycopg 2 - 3, and Postgres 13 - 16.
django
Django

Django is a high-level Python web framework that encourages rapid development and clean, pragmatic design. It follows the model-view-controller (MVC) architectural pattern, providing an extensive set of built-in tools and conventions to streamline the creation of robust and scalable web applications.