Example #1
0
 class Meta(TendenciResource.Meta):
     queryset = MembershipDefault.objects.filter(status=True).exclude(status_detail='archive')
     resource_name = 'membership'
     object_class = MembershipDefault
     validation = TendenciValidation(form_class=MembershipForm)
     list_allowed_methods = ['get', 'post']
     detail_allowed_methods = ['get', 'put', 'delete']
Example #2
0
 class Meta(TendenciResource.Meta):
     queryset = Setting.objects.all()
     resource_name = 'setting'
     validation = TendenciValidation(form_class=SettingForm)
     list_allowed_methods = ['get']
     detail_allowed_methods = ['get', 'put']
     fields = ['name', 'description', 'value', 'data_type', 'input_value']
Example #3
0
 class Meta(TendenciResource.Meta):
     queryset = MembershipDefault.objects.all()
     resource_name = 'membership'
     validation = TendenciValidation(form_class=MembershipForm)
     list_allowed_methods = ['get', 'post']
     detail_allowed_methods = ['get', 'put', 'delete']
Example #4
0
 class Meta(TendenciResource.Meta):
     queryset = Profile.objects.all()
     resource_name = 'profile'
     validation = TendenciValidation(form_class=ProfileForm)
     list_allowed_methods = ['get', 'post']
     detail_allowed_methods = ['get', 'post', 'put', 'delete']