Commit 355ce041a8d7949d71f941dde2ce82e58be42114

Authored by Gustavo
1 parent 46046013

Fix'd error in the create bulletin view

Showing 1 changed file with 1 additions and 4 deletions   Show diff stats
bulletin/views.py
... ... @@ -143,7 +143,7 @@ class NewWindowView(LoginRequiredMixin, LogMixin, generic.DetailView):
143 143 for x in range(len(lista_metas)):
144 144 lista_metas[x]['alcancada'] = alcancadas[x]
145 145 lista_metas[x]['media'] = medias[x]
146   -
  146 +
147 147  
148 148 return context
149 149  
... ... @@ -275,10 +275,7 @@ class CreateView(LoginRequiredMixin, LogMixin, generic.edit.CreateView):
275 275  
276 276 if existe_meta:
277 277 meta_geral = Goals.objects.get(topic=topic)
278   - print(meta_geral.limit_submission_date.date() - 1)
279   - print(meta_geral.presentation)
280 278 now = timezone.now()
281   - print(datetime.datetime.today().date())
282 279 if meta_geral.limit_submission_date.date() > datetime.datetime.today().date():
283 280 messages.error(request,_("The deadline to submit the goals of the topic %s has not yet closed, so you can't create a Bulletin.") %(topic) )
284 281 caminho2 = request.META['HTTP_REFERER']
... ...