Projet

Général

Profil

« Précédent | Suivant » 

Révision d3cfbd19

Ajouté par Serghei Mihai (congés, retour 15/05) il y a presque 10 ans

actes: fixing empty EventWithAct object while trying to create an act. Doctors
are forced to be Worker instances instead of People(which is its parent)

Closes #4945

Voir les différences:

calebasse/actes/views.py
8 8

  
9 9
from calebasse.cbv import ListView, UpdateView, DeleteView
10 10
from calebasse.agenda.views import NewAppointmentView
11
from calebasse.agenda.models import EventWithAct
12
from calebasse.agenda.forms import UpdateAppointmentForm, NewAppointmentForm
11 13

  
12 14
import copy
13 15
import models
......
77 79
class NewAct(NewAppointmentView):
78 80
    success_url = '.'
79 81
    success_msg = u'Acte enregistré avec succès.'
82
    model = EventWithAct
83
    form_class = UpdateAppointmentForm
80 84

  
81 85
    def form_valid(self, form):
82 86
        result = super(NewAct, self).form_valid(form)

Formats disponibles : Unified diff