Esempio n. 1
0
 class Meta:
     resource_name = 'geonotes'
     queryset = GeoNote.objects.all()
     authorization = Authorization()
     filtering = {
         'points': ALL,
         'lines': ALL,
         'polys': ALL,
     }
Esempio n. 2
0
 class Meta:
     resource_name = 'notes'
     authorization = Authorization()
     filtering = {
         'content': ['startswith', 'exact'],
         'title': ALL,
         'slug': ['exact'],
     }
     ordering = ['title', 'slug', 'resource_uri']
     queryset = Note.objects.all()
Esempio n. 3
0
 class Meta:
     queryset = Bone.objects.all()
     resource_name = 'bone'
     authorization = Authorization()
Esempio n. 4
0
 class Meta:
     resource_name = 'notes'
     queryset = Note.objects.filter(is_active=True)
     authorization = Authorization()
Esempio n. 5
0
 class Meta:
     resource_name = 'annotated'
     queryset = AnnotatedNote.objects.all()
     authorization = Authorization()
     validation = FormValidation(form_class=AnnotatedNoteForm)
Esempio n. 6
0
 class Meta:
     queryset = AuthorProfile.objects.all()
     authentication = BasicAuthentication()
     authorization = Authorization()
Esempio n. 7
0
 class Meta:
     resource_name = 'products'
     queryset = Product.objects.all()
     authorization = Authorization()
Esempio n. 8
0
 class Meta:
     resource_name = 'notes'
     queryset = Note.objects.all()
     authorization = Authorization()
Esempio n. 9
0
 class Meta:
     resource_name = 'forum'
     queryset = Forum.objects.prefetch_related('moderators', 'members')
     authorization = Authorization()
     always_return_data = True
Esempio n. 10
0
 class Meta:
     queryset = Job.objects.all()
     resource_name = 'job'
     authorization = Authorization()
     allowed_methods = ('get', 'put', 'post')
Esempio n. 11
0
 class Meta:
     queryset = Payment.objects.all()
     resource_name = 'payment'
     authorization = Authorization()
     allowed_methods = ('get', 'put', 'post')
Esempio n. 12
0
 class Meta:
     queryset = Post.objects.all()
     resource_name = 'post'
     authorization = Authorization()
Esempio n. 13
0
 class Meta:
     resource_name = 'users'
     queryset = User.objects.all()
     allowed_methods = ['get', 'put']
     authorization = Authorization()
Esempio n. 14
0
 class Meta:
     resource_name = 'label'
     queryset = Label.objects.all()
     authorization = Authorization()
Esempio n. 15
0
 class Meta:
     queryset = Dog.objects.all()
     resource_name = 'dog'
     authorization = Authorization()
Esempio n. 16
0
 class Meta:
     resource_name = 'sessionusers'
     queryset = User.objects.all()
     authentication = SessionAuthentication()
     authorization = Authorization()
Esempio n. 17
0
 class Meta:
     queryset = Order.objects.all()
     resource_name = 'order'
     authorization = Authorization()
Esempio n. 18
0
 class Meta:
     queryset = ContactGroup.objects.prefetch_related('members')
     resource_name = 'contactgroup'
     authorization = Authorization()
Esempio n. 19
0
 class Meta:
     resource_name = 'users'
     queryset = User.objects.all()
     authorization = Authorization()
Esempio n. 20
0
 class Meta:
     queryset = Contact.objects.prefetch_related('groups')
     resource_name = 'contact'
     authorization = Authorization()
Esempio n. 21
0
 class Meta:
     queryset = User.objects.all()
     authentication = BasicAuthentication()
     authorization = Authorization()
     excludes = ['email', 'password', 'is_staff', 'is_superuser']
Esempio n. 22
0
 class Meta:
     resource_name = 'noteswithupdatableuser'
     queryset = Note.objects.all()
     authorization = Authorization()
Esempio n. 23
0
 class Meta:
     queryset = User.objects.all()
     authorization = Authorization()
Esempio n. 24
0
 class Meta:
     resource_name = 'category'
     queryset = Category.objects.all()
     authorization = Authorization()
Esempio n. 25
0
 class Meta:
     resource_name = 'users'
     queryset = User.objects.all()
     authorization = Authorization()
     validation = FormValidation(form_class=UserForm)
Esempio n. 26
0
 class Meta:
     resource_name = 'taggabletag'
     queryset = TaggableTag.objects.all()
     authorization = Authorization()
Esempio n. 27
0
 class Meta:
     resource_name = 'notes'
     queryset = Note.objects.all()
     authorization = Authorization()
     validation = FormValidation(form_class=NoteForm)
     filtering = {"created": ALL}
Esempio n. 28
0
 class Meta:
     queryset = SlugBasedNote.objects.all()
     resource_name = 'slugbased'
     detail_uri_name = 'slug'
     authorization = Authorization()
Esempio n. 29
0
 class Meta:
     resource_name = 'ratings'
     queryset = Rating.objects.all()
     authorization = Authorization()
Esempio n. 30
0
 class Meta:
     queryset = Person.objects.all()
     resource_name = 'person'
     authorization = Authorization()