Closed renatobellotti closed 4 years ago
A first version of the models is implemented (not committed yet). The blacklist status of the subscription is set to 'OK' if the subscription is payed. Still to do:
Update (commit a488ef9b9d5cf410397da5a71fad05fd761cc77c):
The code to update the blacklist is implemented, but not tested yet (not even executed...). Remaining tasks:
update_entire_blacklist()
function in courses/services.py
periodicallyAnother thing to do is to use reversion to track changes in the blacklist state.
Idea:
add list of user's courses to user profile with an associated payment status:
add a global status field to user profile table with the following options:
global status is worst case status across all open/closed payments
create blacklist table
celery task to update user status periodically (daily).
when user makes payment, update status accordingly
also write unit tests