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

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

src/d/j/django-postgres-HEAD/tests/test_project/viewtest/models.py   django-postgres(Download)
class Superusers(django_postgres.View):
    projection = ['auth.User.*']
    sql = """SELECT * FROM auth_user WHERE is_superuser = TRUE;"""
 
 
class SimpleUser(django_postgres.View):
class Staffness(django_postgres.View):
    projection = ['auth.User.username', 'auth.User.is_staff']
    sql = str(auth_models.User.objects.only('username', 'is_staff').query)