#31154: Enumeration Types are not usable in templates.
-------------------------------------+-------------------------------------
Reporter: Adam (Chainz) | Owner: Adam
Johnson | (Chainz) Johnson
Type: Bug | Status: closed
Component: Database layer | Version: 3.0
(models, ORM) |
Severity: Release blocker | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak <felisiak.mariusz@…>):
In [changeset:"16297e7d5e3a6b0287d114e95d1d544995618c93" 16297e7]:
{{{
#!CommitTicketReference repository=""
revision="16297e7d5e3a6b0287d114e95d1d544995618c93"
[3.0.x] Fixed #31154 -- Added support for using enumeration types in
templates.
Enumeration helpers are callables, so the template system tried to call
them with no arguments.
Thanks Rupert Baker for helping discover this.
Backport of 5166097d7c80cab757e44f2d02f3d148fbbc2ff6 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31154#comment:4>
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 on the web visit
https://groups.google.com/d/msgid/django-updates/068.b186c55048a69509d714184f9c647218%40djangoproject.com.