title: Single Django model, multiple tables?
body: <p>I know this exact same question has been previously asked, but I was hoping for a 'better' answer (that does not involve modifying class attributes at runtime). This was the question:</p>
  
  <p><a href="https://stackoverflow.com/questions/5036357/single-django-model-multiple-tables">Single Django model, multiple tables?</a></p>
  
  <p>I have the same problem - I am looking for a solution similar to the responder's first reply, but that actually works. If there is no better solution, can anyone comment on how reliable the responder's solution is? It seems to me that the delay between changing the database name and querying the database could end up returning results from the wrong table:</p>
  
  <p>query 1: change the name</p>
  
  <p>query 2: change the name again</p>
  
  <p>query 1: get results (but using the incorrect name from query 2)</p>
  
  <p>Edit: The model is intended for use on ~15 tables - so inheritance is impractical, since it would require a new model name every time.</p>
  
  <p>Thanks</p>
  
  <p>P.S. My apologies if this is not the correct way of asking for an elaboration on a question.</p>