Module ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Call NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword Num FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Raise Call NameLoad Call NameLoad BinOpMod Str Dict Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareNotIn NameLoad NameLoad body Raise Call NameLoad Call NameLoad BinOpMod Str Dict Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list decorator_list
N/A django.core.validators ValidationError django.contrib.auth.models User django.utils.translation ugettext _ rest_framework serializers onadata.libs.models.share_project ShareProject onadata.libs.permissions ROLES onadata.libs.serializers.fields.project_field ProjectField ShareProjectSerializer N/A N/A serializers Serializer N/A N/A project N/A ProjectField N/A username N/A N/A serializers CharField max_length 255 N/A role N/A N/A serializers CharField max_length 50 update N/A N/A self instance validated_data N/A N/A N/A N/A instance project N/A N/A validated_data get project N/A instance project N/A N/A instance username N/A N/A validated_data get username N/A instance username N/A N/A instance role N/A N/A validated_data get role N/A instance role N/A instance N/A create N/A N/A self validated_data N/A N/A N/A project N/A ShareProject validated_data N/A N/A N/A project save N/A project N/A validate_username N/A N/A self value N/A N/A N/A Check that the username exists N/A N/A N/A N/A N/A N/A User objects get username value N/A N/A N/A N/A User DoesNotExist N/A N/A N/A ValidationError N/A _ N/A User '%(value)s' does not exist. N/A value value N/A value N/A validate_role N/A N/A self value N/A N/A N/A check that the role exists N/A N/A value ROLES N/A N/A N/A ValidationError N/A _ N/A Unknown role '%(role)s'. N/A role value N/A value N/A remove_user N/A N/A self N/A N/A N/A obj N/A ShareProject N/A self validated_data N/A N/A N/A obj remove_user N/A N/A