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