from rest_framework import serializers
from .models import Spell

class SpellSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Spell
        fields = (
            'name',
            'description',
            'success',
            'crit_success',
            'fail',
            'crit_failure',
            'level',
            'area',
            'range',
            'duration',
            'target',
            'trigger',
            'type',
            'verbal',
            'somatic',
            'material',
            'table',
        )
468dc9d43f136872d95ef6d395a83e7f2566b1b9
<mask token>

<mask token>


class SpellSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Spell
        fields = ('name', 'description', 'success', 'crit_success', 'fail',
            'crit_failure', 'level', 'area', 'range', 'duration', 'target',
            'trigger', 'type', 'verbal', 'somatic', 'material', 'table')

from rest_framework import serializers
from .models import Spell


class SpellSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Spell
        fields = ('name', 'description', 'success', 'crit_success', 'fail',
            'crit_failure', 'level', 'area', 'range', 'duration', 'target',
            'trigger', 'type', 'verbal', 'somatic', 'material', 'table')

from rest_framework import serializers
from .models import Spell

class SpellSerializer(serializers.HyperlinkedModelSerializer):

    class Meta:
        model = Spell
        fields = (
            'name',
            'description',
            'success',
            'crit_success',
            'fail',
            'crit_failure',
            'level',
            'area',
            'range',
            'duration',
            'target',
            'trigger',
            'type',
            'verbal',
            'somatic',
            'material',
            'table',
        )