Skip to content

Commit

Permalink
don't import virtual fieldset as model class
Browse files Browse the repository at this point in the history
  • Loading branch information
sheppard committed Jun 16, 2023
1 parent b33ca51 commit 48a3243
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/files/nestedfk/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from wq.db import rest
from .models import Nestedfk, Item, Nested
from .models import Nestedfk, Item


class ItemSerializer(rest.ModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion tests/files/repeat/serializers.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from wq.db import rest
from .models import Repeat, Item, Nested, Data
from .models import Repeat, Item, Data


class ItemSerializer(rest.ModelSerializer):
Expand Down
2 changes: 1 addition & 1 deletion xlsconv/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def root(self):
def models(self):
models = [self.class_name]
for field in self.children:
if field.children:
if field.children and field.config.get("wq:many"):
models += field.models
return models

Expand Down

0 comments on commit 48a3243

Please sign in to comment.