Python django.apps.apps.check_models_ready() Examples

The following are 6 code examples of django.apps.apps.check_models_ready(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module django.apps.apps , or try the search function .
Example #1
Source File: related.py    From GTDWeb with GNU General Public License v2.0 5 votes vote down vote up
def related_model(self):
        # Can't cache this property until all the models are loaded.
        apps.check_models_ready()
        return self.rel.to 
Example #2
Source File: related.py    From bioforum with MIT License 5 votes vote down vote up
def related_model(self):
        # Can't cache this property until all the models are loaded.
        apps.check_models_ready()
        return self.remote_field.model 
Example #3
Source File: related.py    From Hands-On-Application-Development-with-PyCharm with MIT License 5 votes vote down vote up
def related_model(self):
        # Can't cache this property until all the models are loaded.
        apps.check_models_ready()
        return self.remote_field.model 
Example #4
Source File: related.py    From python with Apache License 2.0 5 votes vote down vote up
def related_model(self):
        # Can't cache this property until all the models are loaded.
        apps.check_models_ready()
        return self.remote_field.model 
Example #5
Source File: related.py    From openhgsenti with Apache License 2.0 5 votes vote down vote up
def related_model(self):
        # Can't cache this property until all the models are loaded.
        apps.check_models_ready()
        return self.remote_field.model 
Example #6
Source File: related.py    From python2017 with MIT License 5 votes vote down vote up
def related_model(self):
        # Can't cache this property until all the models are loaded.
        apps.check_models_ready()
        return self.remote_field.model