kopia lustrzana https://github.com/jedie/PyInventory
bugfix BaseUserOnlyModelForm
rodzic
2a4d6a1988
commit
55760dc973
|
@ -5,8 +5,8 @@ from inventory.request_dict import get_request_dict
|
||||||
|
|
||||||
|
|
||||||
class BaseUserOnlyModelForm(forms.ModelForm):
|
class BaseUserOnlyModelForm(forms.ModelForm):
|
||||||
def __init__(self, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
super().__init__(**kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
|
|
||||||
# Filter all related fields that has a "user" attribute for the current user
|
# Filter all related fields that has a "user" attribute for the current user
|
||||||
# e.g.:
|
# e.g.:
|
||||||
|
|
Ładowanie…
Reference in New Issue