fixed various space related bugs

This commit is contained in:
vabene1111
2021-03-11 16:41:05 +01:00
parent b552badff7
commit 7e38e946a5
4 changed files with 8 additions and 7 deletions

View File

@ -266,7 +266,7 @@ class SyncForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
space = kwargs.pop('space')
super().__init__(*args, **kwargs)
self.fields['book'].queryset = Storage.objects.filter(space=space).all()
self.fields['storage'].queryset = Storage.objects.filter(space=space).all()
class Meta:
model = Sync