Code

Opened 8 years ago

Closed 7 years ago

#1238 closed defect (invalid)

ManyToMany doesn't support delete for non-integer primary key datatypes

Reported by: boxed@… Owned by: adrian
Component: Database layer (models, ORM) Version: master
Severity: normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

django/django/core/meta/__init__.py method method_set_many_to_many (line 1158 to 1161 in revision 2013) assumes that the fields are integers, when they can be strings for example.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by SmileyChris

  • Resolution set to invalid
  • Status changed from new to closed
  • Triage Stage changed from Unreviewed to Accepted

This is being handled differently now. django.core.meta disappeared quite a while ago. The only similar code I can find is in db.models.fields.related and from my quick overview, it doesn't look to be an issue any more.

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.