Re: [Django] #14096: Insert code generated by models using multiple inheritance is incorrect and fails in postgresql

12 views
Skip to first unread message

Django

unread,
Jul 24, 2014, 5:08:32 PM7/24/14
to django-...@googlegroups.com
#14096: Insert code generated by models using multiple inheritance is incorrect and
fails in postgresql
-------------------------------------+-------------------------------------
Reporter: pembo13 | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.2
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: orm | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 1
Needs tests: 1 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by la_iscla@…):

I'm experiencing the same issue here. Annoying. Any chance to see this
fixed?

--
Ticket URL: <https://code.djangoproject.com/ticket/14096#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 24, 2014, 5:40:02 PM7/24/14
to django-...@googlegroups.com
#14096: Insert code generated by models using multiple inheritance is incorrect and
fails in postgresql
-------------------------------------+-------------------------------------
Reporter: pembo13 | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.2
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: orm | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 1
Needs tests: 1 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by timo):

Update the patch and add a test if you'd like to get it fixed.

--
Ticket URL: <https://code.djangoproject.com/ticket/14096#comment:10>

Django

unread,
Jul 25, 2014, 4:02:16 AM7/25/14
to django-...@googlegroups.com
#14096: Insert code generated by models using multiple inheritance is incorrect and
fails in postgresql
-------------------------------------+-------------------------------------
Reporter: pembo13 | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 1.2
(models, ORM) | Resolution:
Severity: Normal | Triage Stage: Accepted
Keywords: orm | Needs documentation: 0
Has patch: 1 | Patch needs improvement: 1
Needs tests: 1 | UI/UX: 0
Easy pickings: 0 |
-------------------------------------+-------------------------------------

Comment (by la_iscla@…):

Well, I've made a workaround with Postgres by having the model tables rely
on the same SEQUENCE counter:

ALTER TABLE mymodule_a ALTER COLUMN id SET DEFAULT
nextval('mymodule_c_id_seq');

I'll dig further into this issue whenever I have more time.

--
Ticket URL: <https://code.djangoproject.com/ticket/14096#comment:11>

Django

unread,
Oct 8, 2015, 9:28:49 AM10/8/15
to django-...@googlegroups.com
#14096: Insert code generated by models using multiple inheritance is incorrect and
fails in postgresql
-------------------------------------+-------------------------------------
Reporter: pembo13 | Owner: nobody
Type: Bug | Status: closed

Component: Database layer | Version: 1.2
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: orm | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => invalid


Comment:

Closing as invalid given the provided models don't validate:
{{{
data.Company: (models.E005) The field 'id' from parent model
'data.account' clashes with the field 'id' from parent model
'data.contact'.
data.Employee.company: (models.E006) The field 'company' clashes with the
field 'company' from model 'data.contact'.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/14096#comment:12>

Reply all
Reply to author
Forward
0 new messages