Skip to content

Commit

Permalink
simple gha test to fic the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Sep 17, 2023
1 parent c3f3845 commit bb3dc7c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/api/serializers/custom/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import json
import os

from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ObjectDoesNotExist
Expand Down Expand Up @@ -179,7 +180,11 @@ class TagRelatedField(serializers.MultipleChoiceField): # todo fix tests for th

def __init__(self, **kwargs):
kwargs["required"] = False
choices = Tag.objects.all().values_list("id", "name")
print(os.environ)
if not os.environ.get("GITHUB_ACTIONS", True):
choices = Tag.objects.all().values_list("id", "name")
else:
choices = []
kwargs["help_text"] = "The Tags associated with this object."
super().__init__(choices, **kwargs)

Expand Down

0 comments on commit bb3dc7c

Please sign in to comment.