# Path: mapaguarani/pages/models.py
# class Page(FlatPage):
#     position = models.IntegerField(_('Position'), default=0, null=True, blank=True)
# 
#     class Meta:
#         verbose_name = _('Page')
#         verbose_name_plural = _('Pages')


from rest_framework import serializers
from .models import Page


class FlatpageSerializer(serializers.ModelSerializer):

    class Meta:
        model = Page

# Path: mapaguarani/pages/models.py
# class Page(FlatPage):
#     position = models.IntegerField(_('Position'), default=0, null=True, blank=True)
# 
#     class Meta:
#         verbose_name = _('Page')
#         verbose_name_plural = _('Pages')


# Path: mapaguarani/pages/serializers.py
from rest_framework import serializers
from .models import Page



class FlatpageSerializer(serializers.ModelSerializer):

    class Meta:
        model = Page

        fields = ['id', 'url', 'title', 'content', 'position',]