<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_registered_models(self, abstract=True):
 """ Returns a list of all registered models, or just concrete registered models. """

        return [model for (model, opts) in self._registry.items()
                if opts.registered and (not model._meta.abstract or abstract)]