title: Creating parent model that all models will inherit from in Django
body: <p>I am attempting to create a model class that all models will inherit from when they are created (in Django). I want any model class, with any attributes to be able to inherit from this class and read from the appropriate database table.</p>
  
  <p>I know I am going need to use <code>**kwargs</code> and <code>.setattr()</code> at some point but am unclear as to where I even start. I am also going to try to recreate <code>.all()</code>, <code>.filter()</code> and <code>.get()</code> with in that class that all other methods that inherit this class can access. </p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>import sqlite3
  
  class Model:
  def __init__(self):
      pass
  
  @classmethod
  def all(self, **kwargs):
      pass
  
  @classmethod
  def get(self):
      pass
  
  @classmethod
  def filter(self):
      pass
  
  
  ###don't touch the code for these
  class Users(Model):
      pass
  
  class Stocks(Model):
      pass
  </code></pre>
  
  <p>How can I go about the initialization of this class? </p>