Open mikelane opened 5 years ago
Hello! I learned about this project at a PyLadies meetup quite a while ago and have been wanting to contribute. Can I start working on this issue? Is this the best place to ask questions, and is the python-for-good slack channel still active? I wasn't able to join it (it said "token revoked"). Thanks :)
Awesome, Treasure! This is a great case to work on. Let us know if you need anything and I'll try to respond quicker next time.
Sisters of the Road Outbook
Description
Sisters is a safe space and is dedicated to maintaning a violence-free, respectful, and dignified environment in the cafe. If a customer violates the house rules, they can be put on an "out", meaning they are not invited to the cafe for some period of time. This duration is determined through a conversation with the customer and sisters staff.
We'd eventually like to be able to support the outbook for Sisters of the Road. We'd like to be able to allow the POS app to know if a client is currently out and we'd like to make it easy for SotR to generate the various reports that they are required to make.
Requirements
Outbook Events
OutbookEvents
is_barter_account_out
that takes aBarterAccount
object and returns abool
makes it easy to determine if a given barter account is currently outget_barter_account_out_reason
that takes aBarterAccount
object and returns astr
that makes it easy to see why a given barter account is currently outBarterAccount Model changes
add_out_event
that adds an event to the outbook for this barter account@property
namedis_out
toBarterAccount
that takes no parameters and returns abool
that usesself
in theis_barter_account_out
custom manager method@property
namedout_reason
toBarterAccount
that takes no parameters and returns an optionalstr
that usesself
to call theget_barter_account_out_reason
method.Tests
Notes:
on_delete
parameter set since we are using django 2.related_name
parameter to the foreign key field, tooTesting
Implement the following if the new testing system gets released before this work is done. Please feel free to pair with @mikelane for help on this.