Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webapp/polls/models.py
diff options
context:
space:
mode:
authorRogelio Mita <rogeliomita@activitycentral.com>2013-09-26 19:57:55 (GMT)
committer Rogelio Mita <rogeliomita@activitycentral.com>2013-09-26 20:01:33 (GMT)
commit205b5458be0f921c1d842274e9e155554042ccaf (patch)
treeb1ab948f0c707d7e519e6b29f36d2f7c1c7b0b86 /webapp/polls/models.py
parentff83edcc94abcaf072454dd3ea5e2676b5bf7f47 (diff)
Removed mutable argument from validate method of Field class
Diffstat (limited to 'webapp/polls/models.py')
-rw-r--r--webapp/polls/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/polls/models.py b/webapp/polls/models.py
index 74a002e..1117728 100644
--- a/webapp/polls/models.py
+++ b/webapp/polls/models.py
@@ -818,7 +818,8 @@ class Field(AbstractObject, ComponentStructure):
self.img = None
raise Field.ValidationError(e.messages[0])
- def validate(self, options=[], new_data=None):
+ def validate(self, options=None, new_data=None):
+ options = [] if options is None else options
self.errors = []
rule, msg = Field.VALIDATION_RULES.get(self.widget_type)
if not rule(self):