[damned-lies] Same commit as previous, but with a Python2.5-compatible syntax
- From: Claude Paroz <claudep src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [damned-lies] Same commit as previous, but with a Python2.5-compatible syntax
- Date: Thu, 6 Aug 2009 19:57:12 +0000 (UTC)
commit dde9d3ea7ebf1c0ee64011a0ae0ee6f09a5435b7
Author: Claude Paroz <claude 2xlibre net>
Date: Thu Aug 6 21:57:12 2009 +0200
Same commit as previous, but with a Python2.5-compatible syntax
stats/forms.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/stats/forms.py b/stats/forms.py
index 4f936e5..9652205 100644
--- a/stats/forms.py
+++ b/stats/forms.py
@@ -3,7 +3,8 @@ from stats.models import CATEGORY_CHOICES, Release
class ReleaseField(forms.ModelChoiceField):
def __init__(self, *args, **kwargs):
- super(ReleaseField, self).__init__(*args, required=False, **kwargs)
+ kwargs['required'] = False
+ super(ReleaseField, self).__init__(*args, **kwargs)
if 'label' in kwargs:
self.is_branch = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]