Issue 115: Swaps gives TempleteRender error when creating a new offer
http://code.google.com/p/django-hotclub/issues/detail?id=115

New issue report by boomroker:
What steps will reproduce the problem?
1. Create a offer

Output is here
http://dpaste.com/91971/

The code is in models.py of swaps
def proposed_swap(self):
         if self.proposed_swaps:
             return self.proposed_swaps.all()[0]
         else:
             return None



What version of the product are you using? On what operating system?

Ubuntu 8.04 - Django trunk - Pinax trunk

If I remove the [0] it works perfectly






Issue attributes:
        Status: New
        Owner: ----
        Labels: Type-Defect Priority-Medium

-- 
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to