newlogic-g2p
newlogic-g2p copied to clipboard
Add an app to record consent
- [ ] Create a Consent Model:
- name
- signatory (Individual)
- expiry
- [ ] Create a Consent Mixin to make it easy to add to any object
- [ ] Create a view to list models that are in violation
signatory_iddomain should make sure it is an individual.- The mixin was not for the
consentobject but for the objects that would link to theconsentobject, such as theres.partner. - Add a Model
ConsentConfigthat just has anamefor now. It will allow later to define some parameters for the given consent. Consentmodel should have a fk to theConsentConfig- create
DefaultConsentConfig.
An individual's registrant domain is not just [("is_group", "=", False)] it is [("is_registrant", "=", True), ("is_group", "=", True)]
- Rename "create consent" to
record consentin the code and UIs. - Allow the consent to be recorded for a group, and the signing person can be a member of the group
- Make the name of the consent auto-generated from the consent config and signatory.
Keep in mind:
The consent is about some data (target) that someone (actor) gives consent to be used under some conditions (parameters)