forked from CGM_Public/pretix_original
styling
This commit is contained in:
@@ -31,7 +31,7 @@ from pretix.api.serializers.order import OrderPositionSerializer
|
||||
from pretix.api.serializers.organizer import (
|
||||
CustomerSerializer, GiftCardSerializer,
|
||||
)
|
||||
from pretix.base.models import Device, Order, OrderPosition, ReusableMedium, TeamAPIToken, User
|
||||
from pretix.base.models import Order, OrderPosition, ReusableMedium
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -139,8 +139,6 @@ class ReusableMediaSerializer(I18nAwareModelSerializer):
|
||||
|
||||
return r
|
||||
|
||||
|
||||
|
||||
class Meta:
|
||||
model = ReusableMedium
|
||||
fields = (
|
||||
|
||||
@@ -170,6 +170,7 @@ def test_giftcard_detail_expand(token_client, organizer, event, giftcard):
|
||||
"blocked": None
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_giftcard_detail_expand_without_permissions(team, token_client, organizer, event, giftcard):
|
||||
with scopes_disabled():
|
||||
|
||||
@@ -23,7 +23,6 @@ from datetime import datetime, timedelta, timezone
|
||||
from decimal import Decimal
|
||||
|
||||
import pytest
|
||||
from django.contrib.messages.storage.fallback import FallbackStorage
|
||||
from django.utils.timezone import now
|
||||
from django_scopes import scopes_disabled
|
||||
|
||||
@@ -252,6 +251,7 @@ def test_medium_detail(token_client, organizer, event, medium, giftcard, custome
|
||||
"issuer": "dummy",
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_medium_detail_event_permission_missing(token_client, organizer, event, medium, giftcard, customer, team):
|
||||
team.all_organizer_permissions = False
|
||||
@@ -301,7 +301,7 @@ def test_medium_detail_event_permission_missing(token_client, organizer, event,
|
||||
"testmode": False,
|
||||
"expires": None,
|
||||
"conditions": None,
|
||||
"owner_ticket": {"id": op.pk },
|
||||
"owner_ticket": {"id": op.pk},
|
||||
"issuer": "dummy",
|
||||
}
|
||||
|
||||
@@ -322,9 +322,6 @@ def test_medium_detail_event_permission_missing(token_client, organizer, event,
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
TEST_MEDIUM_CREATE_PAYLOAD = {
|
||||
"type": "barcode",
|
||||
"identifier": "FOOBAR",
|
||||
|
||||
Reference in New Issue
Block a user