https://github.com/norakgithub/django-model-controller
Django model tracking
https://github.com/norakgithub/django-model-controller
controller django model tracking
Last synced: 12 months ago
JSON representation
Django model tracking
- Host: GitHub
- URL: https://github.com/norakgithub/django-model-controller
- Owner: NorakGithub
- License: other
- Created: 2017-01-08T09:16:45.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-15T10:20:02.000Z (over 3 years ago)
- Last Synced: 2025-07-15T22:41:10.960Z (12 months ago)
- Topics: controller, django, model, tracking
- Language: Python
- Homepage: http://django-model-controller.readthedocs.io
- Size: 57.6 KB
- Stars: 10
- Watchers: 1
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.md
Awesome Lists containing this project
README
Django Model Controller
=======================
.. image:: https://travis-ci.org/NorakGithub/django-model-controller.svg?branch=master
:target: https://travis-ci.org/NorakGithub/django-model-controller
.. image:: 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, 3.6)
- Django (1.8, 1.9, 1.10, 2.x.x, 3.x.x)
Quick start
-----------
Install using pip:
.. code-block:: sh
pip install django-model-controller