pasystem / python-money

Automatically exported from code.google.com/p/python-money
0 stars 0 forks source link

Instances of newforms in the django contrib module #3

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Trying to import MoneyField into a django project results in errors because
of instances of "newforms".

Original issue reported on code.google.com by grossand...@gmail.com on 25 Aug 2009 at 9:36

GoogleCodeExporter commented 8 years ago
Here's a patch to fix it

Index: tests/django_test/views.py
===================================================================
--- tests/django_test/views.py  (revision 25)
+++ tests/django_test/views.py  (working copy)
@@ -1,4 +1,4 @@
-from django import newforms as forms
+from django import forms as forms
 from django.shortcuts import render_to_response, get_object_or_404
 from money.contrib.django.forms.fields import MoneyField
 from money import Money
Index: money/contrib/django/forms/fields.py
===================================================================
--- money/contrib/django/forms/fields.py        (revision 25)
+++ money/contrib/django/forms/fields.py        (working copy)
@@ -1,5 +1,5 @@
 from django.utils.translation import ugettext_lazy as _
-from django import newforms as forms
+from django import forms as forms
 from widgets import InputMoneyWidget
 from money import Money, CURRENCY

Index: money/contrib/django/forms/widgets.py
===================================================================
--- money/contrib/django/forms/widgets.py       (revision 25)
+++ money/contrib/django/forms/widgets.py       (working copy)
@@ -1,4 +1,4 @@
-from django import newforms as forms
+from django import forms as forms
 from money import Money, CURRENCY
 from decimal import Decimal

Original comment by grossand...@gmail.com on 25 Aug 2009 at 9:41

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by ben.coug...@gmail.com on 14 May 2011 at 3:28

GoogleCodeExporter commented 8 years ago
Committed patch as above

Original comment by ben.coug...@gmail.com on 14 May 2011 at 4:29