from bluebottle.terms.models import Terms, TermsAgreement
from rest_framework import serializers
from bluebottle.members.models import Member
from bluebottle.terms.models import Terms
\

class TermsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Terms
        fields = ('id', 'date', 'version', 'contents')


class TermsAgreementSerializer(serializers.ModelSerializer):
    user = serializers.PrimaryKeyRelatedField(read_only=True)
    terms = serializers.PrimaryKeyRelatedField(read_only=True)

    class Meta:
        model = TermsAgreement
        fields = ('id', 'terms', 'user', 'created')

4f0764d02af2f789085612626e132688545c7abc
<mask token>


class TermsAgreementSerializer(serializers.ModelSerializer):
    <mask token>
    <mask token>


    class Meta:
        model = TermsAgreement
        fields = 'id', 'terms', 'user', 'created'

<mask token>


class TermsAgreementSerializer(serializers.ModelSerializer):
    user = serializers.PrimaryKeyRelatedField(read_only=True)
    terms = serializers.PrimaryKeyRelatedField(read_only=True)


    class Meta:
        model = TermsAgreement
        fields = 'id', 'terms', 'user', 'created'

<mask token>


class TermsSerializer(serializers.ModelSerializer):


    class Meta:
        model = Terms
        fields = 'id', 'date', 'version', 'contents'


class TermsAgreementSerializer(serializers.ModelSerializer):
    user = serializers.PrimaryKeyRelatedField(read_only=True)
    terms = serializers.PrimaryKeyRelatedField(read_only=True)


    class Meta:
        model = TermsAgreement
        fields = 'id', 'terms', 'user', 'created'

from bluebottle.terms.models import Terms, TermsAgreement
from rest_framework import serializers
from bluebottle.members.models import Member
from bluebottle.terms.models import Terms


class TermsSerializer(serializers.ModelSerializer):


    class Meta:
        model = Terms
        fields = 'id', 'date', 'version', 'contents'


class TermsAgreementSerializer(serializers.ModelSerializer):
    user = serializers.PrimaryKeyRelatedField(read_only=True)
    terms = serializers.PrimaryKeyRelatedField(read_only=True)


    class Meta:
        model = TermsAgreement
        fields = 'id', 'terms', 'user', 'created'

from bluebottle.terms.models import Terms, TermsAgreement
from rest_framework import serializers
from bluebottle.members.models import Member
from bluebottle.terms.models import Terms
\

class TermsSerializer(serializers.ModelSerializer):
    class Meta:
        model = Terms
        fields = ('id', 'date', 'version', 'contents')


class TermsAgreementSerializer(serializers.ModelSerializer):
    user = serializers.PrimaryKeyRelatedField(read_only=True)
    terms = serializers.PrimaryKeyRelatedField(read_only=True)

    class Meta:
        model = TermsAgreement
        fields = ('id', 'terms', 'user', 'created')
