title: Django: parametrizing db_table for inheritance
body: <p>I want to set the <code>db_table</code> Meta class attribute in a base class so that all inherited classes will have their names in it, similar to how Django treats <code>related_name</code> model field attribute:</p>
  
  <pre><code>class BaseModel(models.Model):
      class Meta:
          db_table = 'prefix_%(class)s'
  </code></pre>
  
  <p>So the inherited model:</p>
  
  <pre><code>class SubModel(BaseModel):
      pass
  </code></pre>
  
  <p>will have db table <code>prefix_submodel</code>.</p>
  
  <p>Is that possible? Can the Meta class access the inheriting class' model name?</p>