Skip to main content

A model tracking field

Project description

https://readthedocs.org/projects/django-model-controller/badge/?version=latest

Model instance tracker.

Full documentation for this project available at http://django-model-controller.readthedocs.io


Overview

Come to a time that you want to able to keep track on each record of data that was created or updated. This project give you the ability to answer these questions: When this record was created? When this record was updated? Who created this record? Who updated this record?

These are the classes that you can use to extend your classes:

Model

  • AbstractTimeStampMarker model datetime create and update
  • AbstractModelController model datetime and who create and update

Form

  • ModelControllerForm form for automatically setup who create and update

View

  • CreateViewMixin view that used form class extended from ModelControllerForm must extend from CreateViewMixin
  • UpdateViewMixin similar to CreateViewMixin but for UpdateView

Requirements

  • Python (2.7, 3.2, 3.4, 3.5)
  • Django (1.8, 1.9, 1.10)

Quick start

Install using pip:

pip install django-model-controller

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django-model-controller-0.2.4.tar.gz (7.3 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page