Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Keep track of last used objects on a django app

Project Description

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")
Release History

Release History

This version
History Node

0.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
django-last-used-0.1.tar.gz (2.7 kB) Copy SHA256 Checksum SHA256 Source Jan 5, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting