Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/c/a/candideitorg-django-0.0.1/candidator/elections/api_v2.py   candideitorg-django(Download)
        authentication = ApiKeyAuthentication()
 
from candidator.elections.views import strip_elements_from_dictionary, medianaranja2
 
class MediaNaranjaResource(Resource):
    def obj_create(self,bundle,**kwargs):
        election = Election.objects.get(id=bundle.data["election-id"])
 
        elements = strip_elements_from_dictionary(bundle.data["data"],election)
        result = medianaranja2(elements["answers"], elements['importances'], elements['questions'], elements['candidates'], elements['categories'], election)