Metadata-Version: 2.4
Name: time-stamped-model
Version: 0.2.12
Summary: Django app to add created and modified
Home-page: https://github.com/django-advance-utils/time-stamped-model
Author: Tom Turner
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

[![PyPI version](https://badge.fury.io/py/time-stamped-model.svg)](https://badge.fury.io/py/time-stamped-model)

# Time Stamped Model

This package creates adds a `created` and `modified` field to your django modals.

## To use

Add time-stamped-model to your installed apps

```
from time-stamped-model.modals import TimeStampedModel

class Foo(TimeStampedModel):
    bar = models.BooleanField(default=False)
```

## Manual set

Sometimes you want to manual set the time. This may be required if you import data from another system.

To do this you can use the functions `set_created_date` and `set_modified_date`
