mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-17 10:13:56 -05:00
15 lines
398 B
Python
15 lines
398 B
Python
from documents.models import Document
|
|
from rest_framework import serializers
|
|
|
|
from .models import Reminder
|
|
|
|
|
|
class ReminderSerializer(serializers.HyperlinkedModelSerializer):
|
|
|
|
document = serializers.HyperlinkedRelatedField(
|
|
view_name="drf:document-detail", queryset=Document.objects)
|
|
|
|
class Meta(object):
|
|
model = Reminder
|
|
fields = ("id", "document", "date", "note")
|