django-last-used
Keep track of last used objects in a django app.
Installation
Install with pip install django-last-used" or ddd "last_used" directory to your Python path.
Add "last_used" to the INSTALLED_APPS tuple found in your settings file.
Run manage.py syncdb to create the new tables
Usage
For save used objects:
import last_used # save used object last_used.use(object=item, user=user) # save with a key last_used.use(object=article, user=user, key="read") last_used.use(object=article, user=user, key="seen")
For get last used objects:
import last_used # get last used last_used_articles = last_used.get(model=Article, user=user) # get with a key last_read_articles = last_used.get(model=Article, user=user, key="read")
Metadata
Release files for django-last-used 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| django-last-used-0.1.tar.gz | 2.7 kB | Without provenance | Details |
Release files / django-last-used-0.1.tar.gz
| Download URL | django-last-used-0.1.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50cbe0fdd1c4a6b352ddd043d248a84072673dfff816ecd9c1b0fb57022b93cc
|
|
BLAKE2b-256 checksum How to use checksums |
48cf25fe8adaf29f619a16f28e09acad9a6675f9677fe1ac99b66fd481b368d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-last-used 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.