Opened 10 years ago
Last modified 10 years ago
#25825 closed Bug
Template Origin is missing an __ne__ implementation — at Version 1
| Reported by: | Jaap Roes | Owned by: | nobody |
|---|---|---|---|
| Component: | Uncategorized | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description (last modified by )
On Python 2.7 a template Origin can be both equal and not equal at the same time due to a missing __ne__ implementation.
>>> a = self.engine.get_template('index.html')
>>> b = self.engine.get_template('index.html')
>>> a.origin == b.origin
True
>>> a.origin != b.origin
True
Change History (1)
comment:1 by , 10 years ago
| Description: | modified (diff) |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
PR here: https://github.com/django/django/pull/5736