Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 2013 16:33:23 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r338329 - in head/www/py-dojango: . files
Message-ID:  <201312311633.rBVGXNmw079267@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Tue Dec 31 16:33:23 2013
New Revision: 338329
URL: http://svnweb.freebsd.org/changeset/ports/338329

Log:
  www/py-dojango: fix IntegerField widget for Django 1.6

Added:
  head/www/py-dojango/files/patch-dojango-forms-fields.py   (contents, props changed)
Modified:
  head/www/py-dojango/Makefile

Modified: head/www/py-dojango/Makefile
==============================================================================
--- head/www/py-dojango/Makefile	Tue Dec 31 15:59:37 2013	(r338328)
+++ head/www/py-dojango/Makefile	Tue Dec 31 16:33:23 2013	(r338329)
@@ -3,7 +3,7 @@
 
 PORTNAME=	dojango
 PORTVERSION=	0.5.6
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www python java
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

Added: head/www/py-dojango/files/patch-dojango-forms-fields.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-dojango/files/patch-dojango-forms-fields.py	Tue Dec 31 16:33:23 2013	(r338329)
@@ -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
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312311633.rBVGXNmw079267>