List Publication Collaborators
Mixin that provides common permission checking methods for publication-related views.
Path parameters
id
Response
id
user
Mixin to handle profile_picture serialization for WebSocket compatibility.
This mixin adds a SerializerMethodField for profile_picture that converts ImageFieldFile objects to URL strings, making them JSON serializable for WebSocket consumers.
The mixin intelligently handles profile pictures from IAMUserDetail by:
- Accessing the related
detailsqueryset on the IAMUser model - Extracting the ImageFieldFile from the first detail record
- Converting it to a URL string for JSON serialization
Usage:
Note:
- This mixin expects the model to have a
detailsrelated manager - The related detail should have a
profile_pictureImageField - Returns None if no profile picture is found or an error occurs
email
Email of the co-creator. Required if user is not set.
role
Role of the co-creator in the publication
owner- Owneradmin- Admineditor- Editorviewer- Viewer
status
not_started- Not Startedin_progress- In Progresscompleted- Completedfailed- Failed
Allowed values:
created_at
is_invite

