mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-18 01:41:14 -06:00
feat: add the new reminders app
This commit is contained in:
14
src/reminders/serialisers.py
Normal file
14
src/reminders/serialisers.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user