Russell Keith-Magee a écrit : > You could probably genericize your redirect_to_url view a little bit > more - you could make the class that is used for lookup configurable, > for example - but you have essentially hit on the solution. > > The issue is that 'shortcut', as captured by the regular expression, > isn't a Python variable you can use in the .get() query. As a result, > the only way you're going to be able to use shortcut in a query is to > push the query into an actual function call - or write a generic view > of your own that will perform that function call, based upon a known > set of named arguments in the pattern.
Ok, thanks for the reply :) I'll try this then :) Thanks, Nicolas --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---