#36998: firstof tag doesn't require an argument when used with as var
---------------------------------+-------------------------------------
     Reporter:  Lily             |                    Owner:  Shubh Rai
         Type:  Bug              |                   Status:  assigned
    Component:  Template system  |                  Version:  6.0
     Severity:  Normal           |               Resolution:
     Keywords:                   |             Triage Stage:  Accepted
    Has patch:  1                |      Needs documentation:  0
  Needs tests:  0                |  Patch needs improvement:  0
Easy pickings:  1                |                    UI/UX:  0
---------------------------------+-------------------------------------
Changes (by Aniket Gupta):

 * stage:  Unreviewed => Accepted

Comment:

 Hi Lily, thanks for catching and reporting this!

 I can confirm this bug is still present on the 'main' branch. I was able
 to isolate and reproduce the silent failure using a minimal, standalone
 Django script, confirming that this is a core parser issue and independent
 of 'django-rusty-templates'. As reported, evaluating 'Template('{% firstof
 as foo %}')' returns an empty node instead of raising the expected
 'TemplateSyntaxError'.

 I am upgrading the Triage Stage to 'Accepted' and I would be very happy to
 write the patch and submit a PR for the fix!
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36998#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019d1bf1c64a-7bef98df-4d62-4ace-bcf9-bc963a92017f-000000%40eu-central-1.amazonses.com.

Reply via email to