aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-dojango
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2014-01-01 00:33:23 +0800
committerwg <wg@FreeBSD.org>2014-01-01 00:33:23 +0800
commit0e0da944969b03f456b7ef6ef61fac4b1d313fe1 (patch)
treeda681fa3647ebab738b5a6cb825580d52e8136c7 /www/py-dojango
parent3a33e7cdf1f41f021302448515ce60caf27993bf (diff)
downloadfreebsd-ports-gnome-0e0da944969b03f456b7ef6ef61fac4b1d313fe1.tar.gz
freebsd-ports-gnome-0e0da944969b03f456b7ef6ef61fac4b1d313fe1.tar.zst
freebsd-ports-gnome-0e0da944969b03f456b7ef6ef61fac4b1d313fe1.zip
www/py-dojango: fix IntegerField widget for Django 1.6
Diffstat (limited to 'www/py-dojango')
-rw-r--r--www/py-dojango/Makefile2
-rw-r--r--www/py-dojango/files/patch-dojango-forms-fields.py17
2 files changed, 18 insertions, 1 deletions
diff --git a/www/py-dojango/Makefile b/www/py-dojango/Makefile
index 56faa6f2f124..fcc508b46665 100644
--- a/www/py-dojango/Makefile
+++ b/www/py-dojango/Makefile
@@ -3,7 +3,7 @@
PORTNAME= dojango
PORTVERSION= 0.5.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www python java
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
diff --git a/www/py-dojango/files/patch-dojango-forms-fields.py b/www/py-dojango/files/patch-dojango-forms-fields.py
new file mode 100644
index 000000000000..b0382c684126
--- /dev/null
+++ b/www/py-dojango/files/patch-dojango-forms-fields.py
@@ -0,0 +1,17 @@
+--- dojango/forms/fields.py.orig 2013-12-31 14:27:55.320053693 +0000
++++ dojango/forms/fields.py 2013-12-31 14:28:29.718050373 +0000
+@@ -61,9 +61,13 @@
+ widget = widgets.Select
+
+ class IntegerField(DojoFieldMixin, fields.IntegerField):
+- widget = widgets.NumberTextInput
+ decimal_places = 0
+
++ def __init__(self, *args, **kwargs):
++ if 'widget' not in kwargs:
++ kwargs['widget'] = widgets.NumberTextInput
++ super(IntegerField, self).__init__(*args, **kwargs)
++
+ class BooleanField(DojoFieldMixin, fields.BooleanField):
+ widget = widgets.CheckboxInput
+