This is an extension for juntagrico. You can find more information about juntagrico here (https://github.com/juntagrico/juntagrico).
This extension provides support for custom composition of subscriptions. Each user can select the amount of predefined products in his or her subscription. A subscription has a total amount of available units and each product can be assigned a size in these units.
The extension also creates depot lists and packing lists that describe which products should be delivered to a depot and by which user they should be collected.
Install juntagrico-badge via pip
$ pip install juntagrico-custom-sub
or add it in your projects requirements.txt
In settings.py add 'juntagrico_custom_sub',, above 'juntagrico'.
INSTALLED_APPS = [
...
'juntagrico_custom_sub',
'juntagrico',
]Set the signup manager to include the additional step during signup
SIGNUP_MANAGER = "juntagrico_custom_sub.util.sessions.SignupManager"and configure the depot lists.
from juntagrico_custom_sub import defaults as cs_defaults
DEPOT_LISTS = cs_defaults.DEPOT_LISTSIn your urls.py you also need to extend the pattern:
urlpatterns = [
...
path('', include('juntagrico_custom_sub.urls')),
]