Error accessing the table from an app with label changed

70 views
Skip to first unread message

Paulo Maciel

unread,
Dec 10, 2014, 2:07:15 PM12/10/14
to django-d...@googlegroups.com
I created an app and using AppConfig I changed the label to another name (abc to my_abc). The migration was successful and the table was created with the label prefix. But when I access the page, Django emits an error that is trying to access the table without taking into account that has changed the name of the label, it is trying to access the table "abc", but should access "my_abc".

ProgrammingError
relation "abc" does not exist

Is it a bug or am I doing something wrong?

Paulo Maciel

unread,
Dec 10, 2014, 2:19:41 PM12/10/14
to django-d...@googlegroups.com
I put in db_table the table name with the new label prefix and it works, it would be better to automatically identify the new name label created by AppConfig. This seems to be a bug

Tim Graham

unread,
Dec 11, 2014, 2:47:45 PM12/11/14
to django-d...@googlegroups.com
I guess this is your ticket here: https://code.djangoproject.com/ticket/23981

I couldn't reproduce the issue so please provide more details.
Reply all
Reply to author
Forward
0 new messages