Module Expr Str ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Assign NameStore Num Assign NameStore Num Assign NameStore Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str ImportFrom alias If UnaryOpNot Call AttributeLoad NameLoad attr body Return ListLoad If BoolOpAnd AttributeLoad NameLoad attr CompareIs NameLoad NameLoad body Return Call NameLoad Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr attr Str If CompareIsNot NameLoad NameLoad body Return ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad CompareNotIn NameLoad Call AttributeLoad NameLoad attr Return ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call NameLoad keyword TupleLoad TupleLoad AttributeLoad NameLoad attr Call NameLoad Str TupleLoad AttributeLoad NameLoad attr Call NameLoad Str TupleLoad AttributeLoad NameLoad attr Call NameLoad Str keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Num keyword AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad keyword TupleLoad TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str TupleLoad Str Str keyword Num Assign NameStore Call NameLoad keyword TupleLoad Str Str ClassDef bases body Assign NameStore Str Assign NameStore Str decorator_list Assign NameStore Call NameLoad Str Str Str FunctionDef arguments args NameParam defaults body Expr Str Return SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Index Num decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Str With Call NameLoad NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad orelse Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Raise Call NameLoad Str Return Call AttributeLoad Call NameLoad NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Return NameLoad Return CompareEq NameLoad Call AttributeLoad Call NameLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Dict Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If UnaryOpNot Call NameLoad NameLoad Str body ImportFrom alias Assign AttributeStore NameLoad attr SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad Index Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword NameLoad attr Return CompareEq NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias alias alias alias alias alias For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore NameLoad orelse Assign NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr keyword Dict Str NameLoad For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body TryExcept body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad body TryExcept body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad handlers ExceptHandler type NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr For NameStore TupleLoad NameLoad NameLoad body Expr Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body ImportFrom alias Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body ImportFrom alias Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg kwarg body ImportFrom alias Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A 
sentry.models.organization
~~~~~~~~~~~~~~~~~~~~~~~~~~

:copyright: (c) 2010-2014 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
 __future__ absolute_import print_function bitfield BitField django.conf settings django.db IntegrityError models transaction django.utils timezone django.utils.functional cached_property django.utils.translation ugettext_lazy _ sentry roles sentry.constants RESERVED_ORGANIZATION_SLUGS sentry.db.models BaseManager BoundedPositiveIntegerField Model sane_repr sentry.db.models.utils slugify_instance sentry.utils.cache Lock OrganizationStatus N/A object N/A N/A VISIBLE 0 N/A PENDING_DELETION 1 N/A DELETION_IN_PROGRESS 2 N/A OrganizationManager N/A BaseManager N/A get_for_user N/A N/A self user scope N/A None N/A N/A 
        Returns a set of all organizations a user has access to.
         sentry.models OrganizationMember N/A N/A N/A N/A user is_authenticated N/A N/A N/A N/A N/A N/A settings SENTRY_PUBLIC N/A scope None N/A N/A N/A list N/A N/A self filter status N/A OrganizationStatus VISIBLE N/A results N/A list N/A N/A N/A N/A N/A OrganizationMember objects filter user user organization__status N/A OrganizationStatus VISIBLE select_related organization N/A N/A scope None N/A N/A N/A N/A r organization N/A r results N/A scope N/A N/A r get_scopes N/A N/A N/A r organization N/A r results N/A N/A Organization N/A Model N/A N/A 
    An organization represents a group of individuals which maintain ownership of projects.
     N/A name N/A N/A models CharField max_length 64 N/A slug N/A N/A models SlugField unique True N/A status N/A BoundedPositiveIntegerField choices N/A N/A N/A OrganizationStatus VISIBLE N/A _ Visible N/A N/A OrganizationStatus PENDING_DELETION N/A _ Pending Deletion N/A N/A OrganizationStatus DELETION_IN_PROGRESS N/A _ Deletion in Progress default N/A OrganizationStatus VISIBLE N/A date_added N/A N/A models DateTimeField default N/A timezone now N/A members N/A N/A models ManyToManyField N/A settings AUTH_USER_MODEL through sentry.OrganizationMember related_name org_memberships N/A default_role N/A N/A models CharField choices N/A N/A roles get_choices max_length 32 default N/A N/A N/A roles get_default id N/A flags N/A BitField flags N/A N/A allow_joinleave Allow members to join and leave teams without requiring approval. N/A enhanced_privacy Enable enhanced privacy controls to limit personally identifiable information (PII) as well as source code in things like notifications. N/A disable_shared_issues Disable sharing of limited details on issues to anonymous users. N/A early_adopter Enable early adopter status, gaining access to features prior to public release. default 1 N/A objects N/A OrganizationManager cache_fields N/A pk slug Meta N/A N/A N/A app_label sentry N/A db_table sentry_organization N/A N/A __repr__ N/A sane_repr owner_id name slug get_default N/A N/A cls N/A N/A N/A 
        Return the organization used in single organization mode.
         N/A N/A N/A N/A N/A cls objects filter status N/A OrganizationStatus VISIBLE N/A 0 N/A classmethod __unicode__ N/A N/A self N/A N/A N/A N/A %s (%s) N/A N/A self name N/A self slug N/A save N/A N/A self N/A args kwargs N/A N/A N/A N/A self slug N/A N/A lock_key slug:organization N/A N/A Lock lock_key N/A N/A N/A slugify_instance self N/A self name reserved RESERVED_ORGANIZATION_SLUGS N/A N/A N/A N/A super Organization self save args kwargs N/A N/A N/A N/A N/A super Organization self save args kwargs N/A delete N/A N/A self N/A N/A N/A N/A self is_default N/A N/A N/A Exception You cannot delete the the default organization. N/A N/A N/A N/A super Organization self delete N/A is_default N/A N/A self N/A N/A N/A N/A N/A settings SENTRY_SINGLE_ORGANIZATION N/A N/A False N/A N/A self N/A N/A N/A type self get_default N/A cached_property has_access N/A N/A self user access N/A None N/A N/A queryset N/A N/A N/A self member_set filter user user N/A N/A access None N/A N/A queryset N/A N/A queryset filter type__lte access N/A N/A N/A queryset exists N/A get_audit_log_data N/A N/A self N/A N/A N/A N/A id slug name status flags default_role N/A self id N/A self slug N/A self name N/A self status N/A self flags N/A self default_role N/A get_default_owner N/A N/A self N/A N/A N/A N/A N/A hasattr self _default_owner N/A sentry.models User N/A N/A self _default_owner N/A N/A N/A N/A User objects filter sentry_orgmember_set__role N/A N/A N/A roles get_top_dog id sentry_orgmember_set__organization self N/A 0 N/A N/A self _default_owner N/A has_single_owner N/A N/A self N/A N/A sentry.models OrganizationMember N/A count N/A N/A N/A N/A N/A OrganizationMember objects filter organization self role owner user__isnull False count N/A N/A count 1 N/A merge_to N/A N/A from_org to_org N/A N/A sentry.models ApiKey AuditLogEntry OrganizationMember OrganizationMemberTeam Project Team N/A from_member N/A N/A N/A OrganizationMember objects filter organization from_org N/A N/A N/A N/A to_member N/A N/A N/A OrganizationMember objects get organization to_org user N/A from_member user N/A N/A N/A N/A OrganizationMember DoesNotExist N/A N/A N/A N/A from_member update organization to_org N/A to_member from_member N/A N/A qs N/A N/A N/A N/A N/A OrganizationMemberTeam objects filter organizationmember from_member is_active True select_related N/A omt qs N/A N/A N/A N/A N/A OrganizationMemberTeam objects create_or_update organizationmember to_member team N/A omt team defaults N/A is_active True N/A team N/A N/A N/A Team objects filter organization from_org N/A N/A N/A N/A N/A N/A transaction atomic N/A N/A N/A N/A team update organization to_org N/A N/A N/A IntegrityError N/A N/A N/A slugify_instance team N/A team name organization to_org N/A N/A N/A team update organization to_org slug N/A team slug N/A project N/A N/A N/A Project objects filter organization from_org N/A N/A N/A N/A N/A N/A transaction atomic N/A N/A N/A N/A project update organization to_org N/A N/A N/A IntegrityError N/A N/A N/A slugify_instance project N/A project name organization to_org N/A N/A N/A project update organization to_org slug N/A project slug N/A model N/A ApiKey AuditLogEntry N/A N/A N/A N/A N/A N/A N/A model objects filter organization from_org update organization to_org N/A update_option N/A N/A self N/A args kwargs N/A sentry.models OrganizationOption N/A N/A N/A N/A OrganizationOption objects set_value self args kwargs N/A get_option N/A N/A self N/A args kwargs N/A sentry.models OrganizationOption N/A N/A N/A N/A OrganizationOption objects get_value self args kwargs N/A delete_option N/A N/A self N/A args kwargs N/A sentry.models OrganizationOption N/A N/A N/A N/A OrganizationOption objects unset_value self args kwargs N/A N/A