"""Back account serializers"""
from rest_framework import serializers
from partner.models import Partner


class BackPartnerSerializer(serializers.ModelSerializer):
    class Meta:
        model = Partner
        fields = (
            'id',
            'old_id',
            'name',
            'url',
            'image',
            'establishment',
            'establishment_id',
            'type',
            'starting_date',
            'expiry_date',
            'price_per_month',
        )
