✨ Dont show inactive users in register view

This commit is contained in:
nikolark committed 2021-10-30 18:21:16 +02:00
1 parent 46c52b7618
commit 350d31d8d8
8 files changed
+221 -68

No files matched your search

+2 -16
View File
@@ -1,27 +1,13 @@
import strawberry
import strawberry_django
from strawberry_django import auto
from main import models
@strawberry_django.filters.filter(models.Product)
class ProductFilter:
id: auto
active: auto
@strawberry_django.type(models.Product, filters=ProductFilter)
class Product:
id: auto
name: auto
sale_price_int: auto
sale_price_ext: auto
from main.api.types import Product, User
@strawberry.type
class Query:
all_products: list[Product] = strawberry_django.field()
all_users: list[User] = strawberry_django.field()
schema = strawberry.Schema(query=Query)