Open wojtekidd opened 4 years ago
Working on this in #40
Override form_valid method in app views.py. Set the instance of an author to currently logged in user.
Eg.: class CreateTshirtView(CreateView): def form_valid(self, form): form.instance.author = self.request.user return super().form_valid(form)
Features to make: