Code

Opened 2 months ago

Last modified 5 weeks ago

#22064 assigned Cleanup/optimization

Invalid related_name passes silently

Reported by: mondone Owned by: elhippie
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Invalid related_name e.g. 'user sets' passes silently. It leads to unpredictable problems. It is not a bug, nor new feature, just RelatedField.check() little iprovement.

Attachments (0)

Change History (4)

comment:1 Changed 2 months ago by bmispelon

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Type changed from Uncategorized to Cleanup/optimization

Good idea, that sounds like a perfect use-case for the checks framework.

comment:2 Changed 2 months ago by mondone

  • Needs tests set
  • Version changed from 1.6 to master

comment:3 Changed 2 months ago by mondone

Last edited 2 months ago by mondone (previous) (diff)

comment:4 Changed 5 weeks ago by elhippie

  • Owner changed from mondone to elhippie
  • Status changed from new to assigned

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as assigned
The owner will be changed from elhippie to anonymous. Next status will be 'assigned'
The ticket will be disowned. Next status will be 'new'
as The resolution will be set. Next status will be 'closed'
Author


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

 
Note: See TracTickets for help on using tickets.