Hi People!
I'm having problems adding a Decimal Field:
(
"cartridge.shop.models.Product.package_weight",
"DecimalField",
(_("Package Weight (kg)"),),
{"max_digits": "7", "decimal_places": "3",
"blank": True, "null": True},
),
and when I run "makemigrations" I got this trace:
- http://dpaste.com/27N44Y7
...
File
"/home/rodrigo/.virtualenvs/dartel/lib/python2.7/site-packages/django/forms/fields.py",
line 402, in widget_attrs
step = str(Decimal('1') / 10 ** self.decimal_places).lower()
TypeError: Error when calling the metaclass bases
unsupported operand type(s) for ** or pow(): 'int' and 'unicode'
Can anyone give me a hint about how to fix it?
Thanks a lot,
Rodrigo
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.