Project

General

Profile

« Previous | Next » 

Revision 7cd2f6fb

Added by Jérôme Schneider almost 13 years ago

actes: fix new act dialog

Fix #2792

  • actes/templates/actes/act_listing.html: cleaning
  • actes/templates/actes/act_update.html: fix new act dialog
  • actes/urls.py: rename url nouvel-acte to new-act
  • actes/views.py: fix new act
  • agenda/templates/agenda/base.html: rename /spam to /span
  • dossiers/views.py: cut lines to 80 characters

View differences:

calebasse/dossiers/views.py
))) \
.distinct() \
.select_related() \
.prefetch_related('participants', 'exceptions__eventwithact', 'act_set__actvalidationstate_set')
.prefetch_related('participants', 'exceptions__eventwithact',
'act_set__actvalidationstate_set')
occurrences = []
for event in qs:
occurrences.extend(filter(lambda e: e.start_datetime.date() >= today, event.all_occurences(limit=180)))
occurrences.extend(filter(lambda e: e.start_datetime.date() >= today,
event.all_occurences(limit=180)))
occurrences = sorted(occurrences, key=lambda e: e.start_datetime)
for event in occurrences:
state = None

Also available in: Unified diff