Code

Opened 8 years ago

Closed 7 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: master
Severity: normal Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

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 8 years ago.
Patch

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by anonymous

Patch

comment:1 Changed 8 years ago by Indy

  • Summary changed from Extend generic update view to accept a optional query set to [patch] Extend generic update view to accept a optional query set

added patch

comment:2 Changed 7 years ago by Simon G. <dev@…>

  • Summary changed from [patch] Extend generic update view to accept a optional query set to Extend generic update view to accept a optional query set
  • Triage Stage changed from Unreviewed to Design decision needed

comment:3 Changed 7 years ago by jacob

  • Resolution set to wontfix
  • Status changed from new to closed

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.