Manage Domains
Provides CRUD operations for domains. GET: Retrieve domains with optional filtering by ID, tag, recommendations, category, subcategory, saved status, search, and sorting options. POST: Create a new domain (requires admin/developer permissions). PATCH: Update an existing domain (requires domain access). DELETE: Remove a domain (requires domain access).
Query parameters
Sort domains by popularity (number of users). Mutually exclusive with other sorting options.
Sort domains by creation date (most recent first). Mutually exclusive with other sorting options.
Sort domains by last update date (most recently updated first). Mutually exclusive with other sorting options.
Filter to show only saved domains (requires authentication).
Response
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
Logo image for the domain (copied from experience)
Cover image for the domain (copied from experience)
public- Publicprivate- Privateteam- Teamorg- Organization
not_started- Not Startedin_progress- In Progresscompleted- Completedfailed- Failed

