Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/m/t/mt-serverland-HEAD/serverland/dashboard/forms.py   mt-serverland(Download)
    def __init__(self, user, *args, **kwargs):
        super(TranslationRequestForm, self).__init__(*args, **kwargs)
 
        if not user.is_superuser:
            worker_queryset = WorkerServer.objects.filter(users=user)

src/m/t/mt-serverland-HEAD/serverland/dashboard/api/handlers.py   mt-serverland(Download)
    def read(self, request, shortname = None):
        '''Handles a GET request asking about worker servers.'''
        if shortname is None:
            objects = WorkerServer.objects.filter(users=request.user)
        else: