From 5f9211f30a5865325c51e5a6f8d480f929bc3da5 Mon Sep 17 00:00:00 2001 From: Binh Van Nguyen Date: Sat, 25 Jun 2011 14:31:52 -0500 Subject: [PATCH] fixed two silly syntax errors --- record.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/record.py b/record.py index 21a6ac8..d73eb33 100644 --- a/record.py +++ b/record.py @@ -267,8 +267,8 @@ class StateWageRecord(model.Model): blank4 = BlankField(max_length=25) def validate_tax_type_code(self, field): - choices [x for x,y in enums.tax_type_codes] - if field.value.upper() not in choices + choices = [x for x,y in enums.tax_type_codes] + if field.value.upper() not in choices: raise ValidationError("%s not one of %s" % (field.value,choices), field=f)