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