title: Django: Getting models with apps.get_model on models.py
body: <p>On circular import of Django Is their any way i can grab a model object with <code>myModel = apps.get_model('app_name', 'model_name')</code> inside models.py file ?</p>
  
  <p>I know i can use <code>models.ForeignKey('app.model',....)</code></p>
  
  <p>But in my case i am making a query in the models.py for custom function. So that i need to grab the model object. Also can't import it in normal way as already imported this file class in the other file. So must be a circular import. </p>
  
  <p>This code <code>myModel = apps.get_model('app_name', 'model_name')</code> works fine on views.py but in models.py doesn't. Since according to django the all models.py get called after settings.py and after that views and others. so while trying to use <code>get_model</code> inside models.py getting this error </p>
  
  <blockquote>
    <p>File "/home/mypc/.virtualenvs/VSkillza/lib/python3.6/site-packages/django/apps/registry.py", line 132, in check_models_ready
        raise AppRegistryNotReady("Models aren't loaded yet.")
    django.core.exceptions.AppRegistryNotReady: Models aren't loaded yet.</p>
  </blockquote>
  
  <p>Thanks in advance :)</p>