Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
mishbahr committed Sep 9, 2014
1 parent 686e9a6 commit 8038e3e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ But just like the Django sites framework, on the first request the current users

If for any reason you want to force a database query, you can tell Django to clear the cache using ``UserSettings.objects.clear_cache()``::

from usersettings.shortcuts import get_usersettings_model
UserSettings = get_usersettings_model()
# First call; current usersettings fetched from database.
current_usersetting = UserSettings.objects.get_current()

Expand Down

0 comments on commit 8038e3e

Please sign in to comment.