Opened 18 years ago

Closed 16 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)

create_update.diff (1.1 KB ) - added by anonymous 18 years ago.
Patch

Download all attachments as: .zip

Change History (4)

by anonymous, 18 years ago

Attachment: create_update.diff added

Patch

comment:1 by Indy, 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 Simon G. <dev@…>, 17 years ago

Summary: [patch] Extend generic update view to accept a optional query setExtend generic update view to accept a optional query set
Triage Stage: UnreviewedDesign decision needed

comment:3 by Jacob, 16 years ago

Resolution: wontfix
Status: newclosed

You can easily do this with a wrapper around the generic view; it isn't worth adding Yet Another Kwarg to the view.

Note: See TracTickets for help on using tickets.
Back to Top