Code

Opened 5 years ago

Closed 5 years ago

#10875 closed (invalid)

Filter an inherited model by parent fields and then update does not work

Reported by: julianb Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords: filter update inheritance
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

  • have a model which inherits fields from a parent model
  • do a filter and specify fields from the parent
  • say update some columns, via QuerySet update method

This will not produce the correct SQL and actually not filter anything.

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by julianb

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

I can add an example model and queries as soon as I have time.

comment:2 Changed 5 years ago by julianb

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

Don't know where, but this appears to be fixed after r10580 that I used.

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.