Skip to content
Browse files

set caching to anonymous only

  • Loading branch information...
1 parent fb03dfd commit af4242a546d7feaaf8c0584ce3195c1f2385902f @visiblegovernment committed Oct 17, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 mainapp/models.py
  2. +1 −0 settings.py
View
2 mainapp/models.py
@@ -29,7 +29,7 @@ def __init__(self, subject='', body='', from_email=None, to=None, cc=None,
bcc=None, connection=None, attachments=None, headers=None):
super(CCEmailMessage, self).__init__(subject, body, from_email, to,
bcc, connection, attachments, headers)
- if csc:
+ if cc:
self.cc = list(cc)
else:
self.cc = []
View
1 settings.py
@@ -116,6 +116,7 @@
# 'mainapp.tests.testsocial_auth.dummy_socialauth.DummyBackend',
)
+CACHE_MIDDLEWARE_ANONYMOUS_ONLY =True
SOCIAL_AUTH_USER_MODEL = 'mainapp.FMSUser'
SOCIAL_AUTH_ASSOCIATE_BY_MAIL = True
ACCOUNT_ACTIVATION_DAYS = 14

0 comments on commit af4242a

Please sign in to comment.
Something went wrong with that request. Please try again.