Hi,

db_table in model Meta should definitely change table name (after
migrations of course). Maybe you made some kind of a typo and it didn't
worked.


On Tue, Aug 21, 2018 at 10:09 AM, Alexander Lamas <
alexander.g.la...@gmail.com> wrote:

> Hi All,
>
> I'm not sure if this is a discussion for this group.
>
> I wonder if there is a way to stop django/python from adding the prefix
> "myapp" for all tables it creates when migrating.
>
> I managed to use db_column='ColumnName' and now my tables have the column
> name I want, but, using db_table inside of my Meta class doesn't help
> anything.
>
> I still want to keep Django to manage everything, but, not the table
> naming. :)
>
> Thanks in advance!
>
> Alex
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django REST framework" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-rest-framework+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Jani Tiainen

- Well planned is half done, and a half done has been sufficient before...

-- 
You received this message because you are subscribed to the Google Groups 
"Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-rest-framework+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to