I see what you mean. But if I change the view:
def ecard_preview(request):
ecard_id = request.GET.get('ecard').encode('utf8')
(...)
So that it gets the value from the url: /ecards/preview/?
ecard=1&sender_name(...), I get this error when submitting:
ValueError at /ecards/save/
Cannot assign "1": "Ecards.ecard" must be a "EcardsFiles" instance.
And I can't load the swf file from EcardsFiles to the template :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---