Rerun black

This commit is contained in:
sonny 2019-12-31 14:46:42 +01:00
parent 38d9d74db4
commit 8acf3bbc7f

View file

@ -17,9 +17,7 @@ class CategoryForm(forms.ModelForm):
super().__init__(*args, **kwargs) super().__init__(*args, **kwargs)
if self.user: if self.user:
self.fields["rules"].queryset = CollectionRule.objects.filter( self.fields["rules"].queryset = CollectionRule.objects.filter(user=self.user)
user=self.user
)
def save(self, commit=True) -> Category: def save(self, commit=True) -> Category:
instance = super().save(commit=False) instance = super().save(commit=False)