fix bad import for Django 1.3 and fixed save() with args in RunInfo models

EmailTemplateFixes
Matteo Atti 2012-04-20 14:21:08 +02:00
parent 5469a1d82a
commit a414ca1ec8
2 changed files with 5 additions and 5 deletions

View File

@ -167,9 +167,9 @@ class RunInfo(models.Model):
help_text=u"A comma sepearted list of questions to skip" help_text=u"A comma sepearted list of questions to skip"
) )
def save(self): def save(self, **kwargs):
self.random = (self.random or '').lower() self.random = (self.random or '').lower()
super(RunInfo, self).save() super(RunInfo, self).save(**kwargs)
def set_cookie(self, key, value): def set_cookie(self, key, value):
"runinfo.set_cookie(key, value). If value is None, delete cookie" "runinfo.set_cookie(key, value). If value is None, delete cookie"

View File

@ -1,5 +1,5 @@
from questionnaire import * from questionnaire import *
from django.conf.urls.static import settings from django.conf import settings
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
from django.utils.simplejson import dumps from django.utils.simplejson import dumps