def get_queryset(self):
if self.queryset is not None:<EOL><INDENT>queryset = self.queryset<EOL><DEDENT>elif self.model is not None:<EOL><INDENT>queryset = self.model._default_manager.all()<EOL><DEDENT>else:<EOL><INDENT>raise NotImplementedError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % {<EOL>'<STR_LIT>': self.__class__.__name__<EOL>}<EOL>)<EOL><DEDENT>return queryset<EOL>
Return QuerySet based on :attr:`.queryset` or :attr:`.model`.

Returns:
    QuerySet: QuerySet of available choices.