From cf2675d701847dbab033f005478a5f9b3c188124 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Tue, 18 Jun 2013 12:32:26 -0400 Subject: [PATCH] Update fields.py When changing variable names for code review critique, accidental cut/paste prevented intended behavior. --- common/lib/xmodule/xmodule/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lib/xmodule/xmodule/fields.py b/common/lib/xmodule/xmodule/fields.py index e75bbd8047..8a74856fc1 100644 --- a/common/lib/xmodule/xmodule/fields.py +++ b/common/lib/xmodule/xmodule/fields.py @@ -29,7 +29,7 @@ class Date(ModelType): # however, we don't want dateutil to default the month or day (but some tests at least expect # us to default year); so, we'll see if dateutil uses the defaults for these the hard way result = dateutil.parser.parse(field, default=self.PREVENT_DEFAULT_DAY_MON_SEED1) - result_other = dateutil.parser.parse(field, default=self.PREVENT_DEFAULT_DAY_MON_SEED1) + result_other = dateutil.parser.parse(field, default=self.PREVENT_DEFAULT_DAY_MON_SEED2) if result != result_other: log.warning("Field {0} is missing month or day".format(self._name, field)) return None