djblets.privacy.models¶
Database models for privacy-related data storage.
- class StoredConsentData(*args, **kwargs)[source]¶
Stored information about a user’s current and past consent decisions.
This tracks what parts of a product a user has consented to, and how those decisions have changed in the past. The model is not meant to be queried directly by applications, but rather used behind the scenes by
DatabaseConsentTracker
.Entries are associated with a user in the database (when available), but are also associated with a piece of identifying data for the purposes of privacy auditing. The identifying data (stored in
audit_identifier
) can be erased at any point without impacting the model, and can also store encrypted values if needed by the application.