code: def get_registered_models(self, abstract=True):
          
          return [model for (model, opts) in self._registry.items()
                  if opts.registered and (not model._meta.abstract or abstract)]
docs: Returns a list of all registered models, or just concrete
          registered models.