Opened 14 years ago
Closed 14 years ago
#18236 closed Uncategorized (wontfix)
keyword parameter naming collision with get_object_or_404
| Reported by: | anonymous | Owned by: | nobody |
|---|---|---|---|
| Component: | Core (Other) | Version: | 1.4 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
A model with a field named "klass" breaks get_object_or_404.
Note:
See TracTickets
for help on using tickets.
You can wrap the klass='someclass' filter into django.db.models.Q(klass='someclass') and things should work. So, instead of:
do
I am marking this as wontfix, as this condition is IMO rare enough to not warrant any fixes.