Submitovatko: bugfixy
This commit is contained in:
parent
62b0b4a62f
commit
fe5cf93ed8
1 changed files with 2 additions and 1 deletions
|
@ -1178,8 +1178,9 @@ class SubmitSolutionView(LoginRequiredMixin, CreateView):
|
|||
with transaction.atomic():
|
||||
self.object = form.save()
|
||||
self.object.resitele.add(Resitel.objects.get(osoba__user = self.request.user))
|
||||
self.object.cas_doruceni = datetime.now()
|
||||
self.object.cas_doruceni = timezone.now()
|
||||
self.object.forma = s.Reseni.FORMA_UPLOAD
|
||||
self.object.save()
|
||||
if prilohy.is_valid():
|
||||
prilohy.instance = self.object
|
||||
prilohy.save()
|
||||
|
|
Loading…
Reference in a new issue