Project

General

Profile

« Previous | Next » 

Revision f8ad3b42

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

Manage disponiblity and fix fixtures

  • calebasse/agenda/managers.py: add daily_disponiblity for OccurrenceManager * agenda/models.py: Occurence notes field is now a many to many
    relation * agenda/templates/agenda/index.html: add disponibility support * agenda/views.py: add disponibility support * cale_base/fixtures/agenda.json: little fixes

View differences:

calebasse/cale_base/fixtures/agenda.json
22 22
        1, 
23 23
        2
24 24
      ], 
25
      "participants": [], 
26
      "description": "", 
27
      "title": "R\u00e9union"
25
      "participants": [
26
          5,
27
          6
28
      ], 
29
      "description": "Bla bla bla", 
30
      "title": "Reunion"
28 31
    }
29 32
  }, 
30 33
  {
......
62 65
    "model": "agenda.occurrence", 
63 66
    "fields": {
64 67
      "start_time": "2012-10-30T10:00:00", 
65
      "room": null, 
66
      "end_time": "2012-10-30T10:30:00", 
68
      "room": 1, 
69
      "notes": [],
70
      "end_time": "2012-10-30T10:45:00", 
67 71
      "event": 1
68 72
    }
69 73
  }, 
......
72 76
    "model": "agenda.occurrence", 
73 77
    "fields": {
74 78
      "start_time": "2012-10-30T10:45:00", 
75
      "room": null, 
76
      "end_time": "2012-10-30T11:00:00", 
79
      "room": 1,
80
      "notes": [],
81
      "end_time": "2012-10-30T11:30:00", 
77 82
      "event": 2
78 83
    }
79 84
  }, 
......
82 87
    "model": "agenda.occurrence", 
83 88
    "fields": {
84 89
      "start_time": "2012-10-30T11:30:00", 
85
      "room": null, 
90
      "room": 2, 
91
      "notes": [],
86 92
      "end_time": "2012-10-30T12:00:00", 
87 93
      "event": 3
88 94
    }
89 95
  }
90
]
96
]

Also available in: Unified diff