skip to navigation
skip to content

Not Logged In

django-last-used 0.1

Keep track of last used objects on a django app

Keep track of last used objects in a django app.

Installation

  1. Install with pip install django-last-used" or ddd "last_used" directory to your Python path.
  2. Add "last_used" to the INSTALLED_APPS tuple found in your settings file.
  3. 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")
 
File Type Py Version Uploaded on Size
django-last-used-0.1.tar.gz (md5) Source 2013-01-05 2KB
  • Downloads (All Versions):
  • 1 downloads in the last day
  • 33 downloads in the last week
  • 164 downloads in the last month