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

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

src/d/j/djangosampler-0.6.0/djangosampler/views.py   djangosampler(Download)
def query(request, query_hash):
    query = Query.objects.get(hash=query_hash)
 
    stacks = Stack.objects.filter(query=query)
    stacks = stacks.order_by('-total_cost')

src/d/j/djangosampler-HEAD/djangosampler/views.py   djangosampler(Download)
def query(request, query_hash):
    query = Query.objects.get(hash=query_hash)
 
    stacks = Stack.objects.filter(query=query)
    stacks = stacks.order_by('-total_cost')

src/a/p/apidev-sanza-3.0.4/sanza/Crm/views.py   apidev-sanza(Download)
        ordering = 'date'
    if ordering == 'name':
        opportunities = opportunities.order_by('name')
    elif ordering == 'status':
        opportunities = opportunities.order_by('status__ordering', 'status')
    elif ordering == 'type':
        opportunities = opportunities.order_by('type')

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/views.py   tendenci(Download)
        app_fields = app_fields.exclude(field_name__in=fields_to_exclude)
 
    app_fields = list(app_fields.order_by('position'))
 
    if can_edit:
        field_objs = field_objs.filter(admin_only=0)
 
    field_objs = list(field_objs.order_by('position'))
 
    form = CorpMembForm(corp_app, field_objs, request.POST or None, request.FILES or None)
        field_objs = field_objs.filter(admin_only=0)
 
    field_objs = list(field_objs.order_by('position'))
 
    # get the field entry for each field_obj if exists
        field_objs = field_objs.exclude(field_name='corporate_membership_type')
 
    field_objs = list(field_objs.order_by('position'))
 
    if can_edit:

src/s/y/synnefo-HEAD/snf-django-lib/snf_django/management/commands/__init__.py   synnefo(Download)
 
        order_key = self.order_by if self.order_by is not None else 'pk'
        objects = objects.order_by(order_key)
 
        if USER_EMAIL_FIELD in self.fields:

src/n/o/noc-0.7(3)/fm/apps/event/views.py   noc(Download)
        u_lang = request.session["django_language"]
 
        events = list(events.order_by("-timestamp")[lr:rr])
        checkpoints = []
        if events:

src/s/e/sentry-responsible-0.3.0/sentry_responsible/plugin.py   sentry-responsible(Download)
    def widget(self, request, group, **kwargs):
        resp = Responsibility.objects.filter(group=group)
        resp = resp.order_by('user__first_name', 'user__last_name',
        'user__username')
        resp = list(resp)

src/n/n/nnmware-HEAD/core/templatetags/core.py   nnmware(Download)
        result = result.filter(tags=category)
    if mode == 'popular':
        result = list(result.order_by('-viewcount')[:2])
    else:
        result = list(result.order_by('?')[:2])

src/f/l/Flask-SuperAdmin-1.7.1/flask_superadmin/model/backends/django/view.py   Flask-SuperAdmin(Download)
        #Order queryset
        if sort:
            qs = qs.order_by('%s%s' % ('-' if sort_desc else '', sort))
 
        # Pagination

src/f/l/Flask-SuperAdmin-HEAD/flask_superadmin/model/backends/django/view.py   Flask-SuperAdmin(Download)
        #Order queryset
        if sort:
            qs = qs.order_by('%s%s' % ('-' if sort_desc else '', sort))
 
        # Pagination

  1 | 2  Next