reviewboard.site.conditions¶
Condition support for Local Sites.
-
class
LocalSiteModelChoiceMixin[source]¶ Bases:
objectMixin to restrict model choices to those on a Local Site.
This will ensure that any queries are bound to a
LocalSite, if provided to the condition field widget throughchoice_kwargs.-
get_queryset()[source]¶ Return a queryset for the choice.
The queryset will take into account a LocalSite, if one is provided for the conditions.
Returns: The queryset for the choice. Return type: django.db.models.query.QuerySet
-