[Django] #30663: How to iuse the if to verify a self define filter value

5 views
Skip to first unread message

Django

unread,
Jul 27, 2019, 7:00:52 AM7/27/19
to django-...@googlegroups.com
#30663: How to iuse the if to verify a self define filter value
-----------------------------------------+------------------------
Reporter: xauthulei | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 2.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Hi, Team,
I an newer to this, I want to to verify myself define filter value{% if
compOsMap|hash:key %} in the teamplate. it will get this error:
"Could not parse the remainder: '|' from 'compMap|"

my django version
>>> django.VERSION
(1, 8, 5, 'final', 0)

Am I right here, or could you give me some suggestions, Many Thanks

--
Ticket URL: <https://code.djangoproject.com/ticket/30663>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 27, 2019, 7:25:49 AM7/27/19
to django-...@googlegroups.com
#30663: How to iuse the if to verify a self define filter value.
---------------------------------+--------------------------------------
Reporter: xauthulei | Owner: nobody
Type: Bug | Status: closed
Component: Template system | Version: master
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by felixxm):

* status: new => closed
* resolution: => invalid
* component: Uncategorized => Template system
* version: 2.2 => master
* type: Uncategorized => Bug


Old description:

> Hi, Team,
> I an newer to this, I want to to verify myself define filter value{% if
> compOsMap|hash:key %} in the teamplate. it will get this error:
> "Could not parse the remainder: '|' from 'compMap|"
>
> my django version
> >>> django.VERSION
> (1, 8, 5, 'final', 0)
>
> Am I right here, or could you give me some suggestions, Many Thanks

New description:

Hi, Team,
I an newer to this, I want to to verify myself define filter value{% if
compOsMap|hash:key %} in the teamplate. it will get this error:
"Could not parse the remainder: '|' from 'compMap|"

my django version
{{{
>>> django.VERSION
(1, 8, 5, 'final', 0)
}}}
Am I right here, or could you give me some suggestions, Many Thanks

--

Comment:

This is a support question, not an issue in Django. Please check
[https://docs.djangoproject.com/en/2.2/ref/templates/builtins/#filters
documentation] and use one of
[https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
support channels].

--
Ticket URL: <https://code.djangoproject.com/ticket/30663#comment:1>

Reply all
Reply to author
Forward
0 new messages