<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_by_model(self, model):
 """Gets all object by a specific model."""

        content_type = ContentType.objects.get_for_model(model)
        return self.filter(content_type=content_type)