On Wed, Feb 18, 2009 at 2:30 PM, Alfonso <allanhender...@gmail.com> wrote:

>
> I've got an invoice model that foreign key's to a customer model, when
> the invoice is saved I'm update a few fields in that related customer
> model to make other code in my setup work.  I keep getting
> "unsupported operand type(s) for ** or pow(): 'Decimal' and
> 'NoneType'"  whenever I try to save the foreignkey model:
>
> [snip]
> I'm thinking I'm looking too closely at something there where the
> problem might be in the related model:
>
> I'm missing something simple but what!?  BTW these models are created
> in separate apps if that makes any difference.
>

Your models wrap rather badly in email, someplace like dpaste.com would be
far better for viewing them.  One really significant thing you've missed is
posting the traceback (again, probably better viewed on dpaste.com).  The
traceback shows what exact line of code is trying to ** incompatible types,
which would be an incredibly useful bit of information to have when
diagnosing the problem.

Karen

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to