class documentation
Subclass of the global Apps registry class to better handle dynamic model additions and removals.
Method | __init__ |
Undocumented |
Method | bulk |
Undocumented |
Method | clone |
Return a clone of this registry. |
Method | register |
Undocumented |
Method | render |
Undocumented |
Method | unregister |
Undocumented |
Instance Variable | ready |
Undocumented |
Instance Variable | ready |
Undocumented |
Instance Variable | real |
Undocumented |
Instance Variable | _lock |
Undocumented |
Inherited from Apps
:
Method | check |
Raise an exception if all apps haven't been imported yet. |
Method | check |
Raise an exception if all models haven't been imported yet. |
Method | clear |
Clear all internal caches, for methods that alter the app registry. |
Method | do |
Take a newly-prepared model and pass it to each function waiting for it. This is called at the very end of Apps.register_model(). |
Method | get |
Import applications and returns an app config for the given label. |
Method | get |
Import applications and return an iterable of app configs. |
Method | get |
Look for an app config containing a given object. |
Method | get |
Return the model matching the given app_label and model_name. |
Method | get |
Return a list of all installed models. |
Method | get |
Similar to get_model(), but doesn't require that an app exists with the given app_label. |
Method | get |
For a given model string (e.g. "auth.User"), return the name of the corresponding settings name if it refers to a swappable model. If the referred model is not swappable, return None. |
Method | is |
Check whether an application with this name exists in the registry. |
Method | lazy |
Take a function and a number of ("app_label", "modelname") tuples, and when all the corresponding models have been imported and registered, call the function with the model classes as its arguments. |
Method | populate |
Load application configurations and models. |
Method | set |
Restrict the set of installed apps used by get_app_config[s]. |
Method | set |
Enable a different set of installed apps for get_app_config[s]. |
Method | unset |
Cancel a previous call to set_available_apps(). |
Method | unset |
Cancel a previous call to set_installed_apps(). |
Instance Variable | all |
Undocumented |
Instance Variable | app |
Undocumented |
Instance Variable | apps |
Undocumented |
Instance Variable | loading |
Undocumented |
Instance Variable | models |
Undocumented |
Instance Variable | stored |
Undocumented |
Instance Variable | _pending |
Undocumented |