Permalink
Browse files

Rename the context processor.

  • Loading branch information...
1 parent 42f53b9 commit 7bbafecb5d0e5805dd4b40ccb1c2ff33f4d075de @streeter committed Dec 5, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 README.md
  2. +2 −1 readonly/context_processors.py
View
@@ -81,7 +81,7 @@ For additional messaging, there is a context processor that adds
```python
TEMPLATE_CONTEXT_PROCESSORS = (
# ...
- 'readonly.context_processors.readonly_processor',
+ 'readonly.context_processors.readonly',
# ...
)
```
@@ -1,6 +1,7 @@
from django.conf import settings
-def readonly_processor(request):
+
+def readonly(request):
return {
'SITE_READ_ONLY': getattr(settings, 'SITE_READ_ONLY', False),
}

0 comments on commit 7bbafec

Please sign in to comment.