Project

General

Profile

« Previous | Next » 

Revision 5c66ef04

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

agenda: add occurrences deletion

View differences:

calebasse/api.py
1 1

  
2 2
from tastypie.authorization import DjangoAuthorization
3 3
from tastypie.resources import ModelResource
4
from calebasse.agenda.models import Event
4
from calebasse.agenda.models import Event, Occurrence
5 5

  
6 6

  
7 7
class EventResource(ModelResource):
......
9 9
            queryset = Event.objects.all()
10 10
            resource_name = 'event'
11 11
            authorization = DjangoAuthorization()
12

  
13
class OccurrenceResource(ModelResource):
14
        class Meta:
15
            queryset = Occurrence.objects.all()
16
            resource_name = 'occurrence'
17
            authorization = DjangoAuthorization()

Also available in: Unified diff