Project

General

Profile

« Previous | Next » 

Revision b8fe32bb

Added by Mikaël Ates almost 10 years ago

actes: add comment property to Act model based on parent event description field.

View differences:

calebasse/actes/models.py
134 134
            return event.start_datetime
135 135
        return self.date
136 136

  
137
    @property
138
    def comment(self):
139
        if self.parent_event:
140
            return self.parent_event.description
141
        return None
142

  
137 143
    def get_hc_tag(self):
138 144
        if self.healthcare:
139 145
            beg = None

Also available in: Unified diff