1 6
from django_elasticsearch_dsl_drf.serializers import DocumentSerializer
2

3 6
from cyborgbackup.elasticsearch.documents.catalogs import CatalogDocument
4

5

6 6
class ESCatalogDocumentSerializer(DocumentSerializer):
7

8 6
    class Meta:
9 6
        document = CatalogDocument
10 6
        fields = (
11
            'path',
12
            'archive_name',
13
            'job',
14
            'owner',
15
            'group',
16
            'size',
17
            'mtime',
18
            'healthy',
19
            'mode'
20
        )

Read our documentation on viewing source code .

Loading