Currently, most of my models look like this:
class A(models.Model):
# model attributes
class Meta:
db_table = 'A'
class B(models.Model):
# model attributes
class Meta:
db_table = 'B'
Is there a way to do this automatically? I tried adding the meta class after defining the class, but because of how Django handles Meta classes for models, this doesn't work. Am I just stuck defining the Meta classes by hand?