On Apr 19, 6:21 pm, Choongmin Lee <choongmi...@gmail.com> wrote: > Is it only me who needs a simple tag with optional assignment, e.g. that > both {% mytag %} and {% mytag as varname %} are possible? > > Attached is a patch that make the assignment optional for assignment_tag. > > If this change of behavior of assignment_tag is not acceptable, then how > about adding a new decorator like 'optional_assignment_tag', or adding a > new parameter to assignment_tag?
Please clarify more why and how this should be used, as I don't get the use-case. BTW patches aren't usually attached to django-developers posts, we use Trac for that (https://code.djangoproject.com/). - Anssi -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.