Andreas Stuhlmüller wrote: > Robert Wittams wrote: > >>Alternatively, the easy way to do this would be to use >>template_decorators.py from the new-admin branch > > > The simple tag decorator looks like an extremely useful enhancement. At > the moment I'm not ready to completely switch over to the new-admin > branch -- is it possible to just take template_decorators.py and plug > it into django's core directory? Doing this and following your > instructions, all I got was "TypeError: sequence item 5: expected > string, int found". > > Andreas > > Are you passing an integer literal? eg 6? template.resolve_variable does not currently deal with that. All arguments in simpletag are resolved with that. It should probably be fixed to at least allow int and float literals.
I can't really work this out without more information. Could you file a ticket with a minimal example. ( or at least include a backtrace. )

