[![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`
Raw data
{
"_id": null,
"home_page": "https://github.com/django-advance-utils/time-stamped-model",
"name": "time-stamped-model",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": null,
"author": "Tom Turner",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/d2/54/ecf23525dfb773e841c4f99e39f198aee326bd25e877d6ee390bd35043da/time-stamped-model-0.2.11.tar.gz",
"platform": null,
"description": "[![PyPI version](https://badge.fury.io/py/time-stamped-model.svg)](https://badge.fury.io/py/time-stamped-model)\n\n# Time Stamped Model\n\nThis package creates adds a `created` and `modified` field to your django modals.\n\n## To use\n\nAdd time-stamped-model to your installed apps\n\n```\nfrom time-stamped-model.modals import TimeStampedModel\n\nclass Foo(TimeStampedModel):\n bar = models.BooleanField(default=False)\n```\n\n## Manual set\n\nSometimes you want to manual set the time. This may be required if you import data from another system.\n\nTo do this you can use the functions `set_created_date` and `set_modified_date`\n",
"bugtrack_url": null,
"license": null,
"summary": "Django app to add created and modified",
"version": "0.2.11",
"project_urls": {
"Homepage": "https://github.com/django-advance-utils/time-stamped-model"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d254ecf23525dfb773e841c4f99e39f198aee326bd25e877d6ee390bd35043da",
"md5": "bc6192fa2ea06d254dba7b77775bab79",
"sha256": "5ea68f67dee8494c291f8a0e0d878757e3b801fd6e9a766b21e66ea629aa8e70"
},
"downloads": -1,
"filename": "time-stamped-model-0.2.11.tar.gz",
"has_sig": false,
"md5_digest": "bc6192fa2ea06d254dba7b77775bab79",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 5226,
"upload_time": "2024-09-10T08:26:40",
"upload_time_iso_8601": "2024-09-10T08:26:40.343752Z",
"url": "https://files.pythonhosted.org/packages/d2/54/ecf23525dfb773e841c4f99e39f198aee326bd25e877d6ee390bd35043da/time-stamped-model-0.2.11.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-10 08:26:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "django-advance-utils",
"github_project": "time-stamped-model",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "time-stamped-model"
}