Skip to content

django-advance-utils/time-stamped-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyPI version

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages