Eggplant is an open source web application that provides simple and flexible infrastructure for organizing food co-ops and other local community-driven projects.
The following issue is solved by modifying models, adding a data migration and adding a further null=False constraint on the new default_account.
Suggested tasks w/ @michkoz :
[ ] Ensure default account field default_account on user model.
[ ] Add trigger when user is created that an account. User can have only one default account.
[ ] Add account to Basket
[ ] Data migration: Create default accounts for all existing users.
Link to the payments:
[ ] Order history should be filtered by account id not user id
[ ] Payment should keep the user field - it is important to know who made the checkout/payment.
For further consideration:
[ ] Create drop down where all users accounts are listed. It can be called for example `Active account'. And user can choose which account he is using for shopping. Of course if he has only one account no drop down is visible.
[ ] The active account ID should be added to session as variable. Or is there any other way how to know what account is the user using? When user login in he shops as personal/last used account.
The following issue is solved by modifying models, adding a data migration and adding a further
null=False
constraint on the newdefault_account
.Suggested tasks w/ @michkoz :
default_account
on user model.account
. User can have only one default account.account
to BasketLink to the payments:
For further consideration: