Opened 18 years ago
Closed 17 years ago
#2859 closed enhancement (wontfix)
Extend generic update view to accept a optional query set
Reported by: | Indy | Owned by: | nobody |
---|---|---|---|
Component: | Generic views | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
It would be a nice addition to extend the update_opject view to accept a optional query_set parameter. If this parameter is present the object to update is selected from this query set. This can be useful if you want to change an object via a slug but the slug is not a unique identifier. In this case you can create a query_set with for pre-selecting the valid entries.
Attachments (1)
Change History (4)
by , 18 years ago
Attachment: | create_update.diff added |
---|
comment:1 by , 18 years ago
Summary: | Extend generic update view to accept a optional query set → [patch] Extend generic update view to accept a optional query set |
---|
added patch
comment:2 by , 18 years ago
Summary: | [patch] Extend generic update view to accept a optional query set → Extend generic update view to accept a optional query set |
---|---|
Triage Stage: | Unreviewed → Design decision needed |
comment:3 by , 17 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
You can easily do this with a wrapper around the generic view; it isn't worth adding Yet Another Kwarg to the view.
Patch