pre-fill 'issued_by' user

This commit is contained in:
Oliver Walters 2021-02-16 15:55:09 +11:00
parent a722057dab
commit a416c56e5a

View File

@ -696,6 +696,9 @@ class BuildCreate(AjaxCreateView):
initials['quantity'] = self.request.GET.get('quantity', 1) initials['quantity'] = self.request.GET.get('quantity', 1)
# Pre-fill the issued_by user
initials['issued_by'] = self.request.user
return initials return initials
def get_data(self): def get_data(self):