diff options
author | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 23:23:09 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2021-05-12 23:23:09 +0300 |
commit | ac02bb0b5b3abbde7dc0386ad687378eb36eb30a (patch) | |
tree | b5f03ce90400426084386ebe7f077514efec4a73 /servo/forms/orders.py | |
parent | 8ac4898734ba241bf0a1e7740caccee4c7656480 (diff) | |
download | Servo-ac02bb0b5b3abbde7dc0386ad687378eb36eb30a.tar.gz Servo-ac02bb0b5b3abbde7dc0386ad687378eb36eb30a.tar.bz2 Servo-ac02bb0b5b3abbde7dc0386ad687378eb36eb30a.zip |
Fix widgets for Django 3
Diffstat (limited to 'servo/forms/orders.py')
-rw-r--r-- | servo/forms/orders.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servo/forms/orders.py b/servo/forms/orders.py index 7b27d0b..ed58754 100644 --- a/servo/forms/orders.py +++ b/servo/forms/orders.py @@ -152,6 +152,8 @@ class OrderSearchForm(forms.Form): label=_('Status older than (days)'), ) + def __init__(self, request, *args, **kwargs): super(OrderSearchForm, self).__init__(*args, **kwargs) self.fields['location'].queryset = request.user.locations.all() + |