Metadata-Version: 2.1
Name: django-model-controller
Version: 0.4.4
Summary: A model tracking field
Home-page: https://github.com/NorakGithub/django-model-controller
Author: Khemanorak Khath
Author-email: khath.khemanorak@google.com
License: BSD
Keywords: django model controller tracking
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Framework :: Django :: 3.0
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Internet :: WWW/HTTP
License-File: LICENSE.md

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