1

So here's what's happening:

I start an app called cars and create a model called Cars. When I syncdb, it creates the table cars_cars. How do I make it so that it just create the table cars?

Also, to add to it, what if I have an app called cars and have a model called car, but want the table to be created for that model be called cars?

Santosh Kumar
  • 26,475
  • 20
  • 67
  • 118
Apothem
  • 405
  • 1
  • 5
  • 12

1 Answers1

3

That's what Meta.db_table is for.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358