Skip to content

Commit a877c84

Browse files
Merge pull request open5e#607 from open5e/606-spell-schools-error-500
Error in the viewset.
2 parents a218d78 + e46fdfc commit a877c84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

api_v2/views/spell.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ def setup_eager_loading(queryset, depth):
6161
queryset = queryset.select_related(*selects).prefetch_related(*prefetches)
6262
return queryset
6363

64+
6465
class SpellSchoolFilterSet(FilterSet):
6566
class Meta:
66-
model = models.CreatureSet
67+
model = models.SpellSchool
6768
fields = {
6869
'key': ['in', 'iexact', 'exact' ],
6970
'name': ['iexact', 'exact','contains'],

0 commit comments

Comments
 (0)