Project

General

Profile

« Previous | Next » 

Revision 831983bb

Added by Jérôme Schneider over 12 years ago

actes: remove acthistory

I will plug it to the new state management

View differences:

calebasse/actes/models.py
60 60
    doctors = models.ManyToManyField('personnes.Worker',
61 61
            limit_choices_to={'type__intervene': True},
62 62
            verbose_name=u'Thérapeutes')
63
    histories = models.ManyToManyField('HistoryAct',
64
            blank=True, null=True)
65 63

  
66 64
    def is_absent(self):
67 65
        if self.get_state() in ('ABS_NON_EXC', 'ABS_EXC', 'ANNUL_NOUS',
......
214 212
        ordering = ['-date', 'patient']
215 213

  
216 214

  
217
class HistoryAct(models.Model):
218
    EVENT_CHOICES = (
219
            ('NR', u'Nouveau rendez-vous'),
220
            ('AV', u'Acte validé'),
221
            ('CF', u'En cours de facturation'),
222
            ('AF', u'Acte facturé'),
223
            )
224
    date = models.DateTimeField()
225
    event_type = models.CharField(max_length=2,
226
            choices=EVENT_CHOICES)
227
    description = models.TextField(default='')
228

  
229

  
230 215
class EventActManager(EventManager):
231 216

  
232 217
    def create_patient_appointment(self, creator, title, patient, participants,

Also available in: Unified diff