0.2.3 #99
1 changed files with 1 additions and 3 deletions
|
|
@ -17,9 +17,7 @@ class CategoryForm(forms.ModelForm):
|
|||
super().__init__(*args, **kwargs)
|
||||
|
||||
if self.user:
|
||||
self.fields["rules"].queryset = CollectionRule.objects.filter(
|
||||
user=self.user
|
||||
)
|
||||
self.fields["rules"].queryset = CollectionRule.objects.filter(user=self.user)
|
||||
|
||||
def save(self, commit=True) -> Category:
|
||||
instance = super().save(commit=False)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue