- # Check attributes
- if queryset_or_model is None:
- raise AttributeError(_('tagged_object_list must be called with a queryset or a model.'))
- if tag_model is None:
- raise AttributeError(_('tagged_object_list must be called with a tag model.'))
- if tags is None:
- raise AttributeError(_('tagged_object_list must be called with a tag.'))