Hello,
I have a very strange problem with the permalink-decorator:
model:
....
def get_url(self):
return permalink('experiment_view', (), {'exp_id': self.id})
urls.py:
...
url(r'^(?P<exp_id>\d+)$', 'edit_experiment', name='experiment_view'),
in my template <h1>{{exp.get_url}}</h1> returns an empty string. But
the function get_url() is invoked. The problem is the permalink
decorator. It seems as if he can not resolve the url.
I dont have any idea what I am doing wrong.
Thanks for your help.
Toni
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---