Jump to >

This documentation covers the in-development release of Review Board. You can see the latest stable docs or all previous versions.


Condition support for Local Sites.

class LocalSiteModelChoiceMixin[source]

Bases: object

Mixin 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 through choice_kwargs.

local_site_attr = u'local_site'[source]

The field on the model pointing to a LocalSite.


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