redex-ai / django-notes-app

0 stars 1 forks source link

REDEX #3

Open redex-ai opened 11 months ago

redex-ai commented 11 months ago

Save last updated time along with date for each note

redex-ai-powered-okr-tool[bot] commented 11 months ago

Change Summary

The 'updated' field in the 'Note' model will be modified to include both date and time. The serializer will be updated to handle this change, and the view function will ensure the 'updated' field is set to the current date and time whenever a note is updated.

FilePlan :-

File : api/models.py

Modify the 'updated' field in the 'Note' model to include both date and time by ensuring the DateTimeField uses the appropriate settings.

File : api/serializers.py

Ensure that the 'NoteSerializer' properly formats the 'updated' field to include both date and time when serializing and deserializing instances.

File : api/views.py

In the 'updateNote' view function, make sure to update the 'updated' field with the current date and time when a note is modified.

Please review the structure and let me know if any modifications are required.

redex-ai-powered-okr-tool[bot] commented 11 months ago

PULL REQUEST : https://github.com/redex-ai/django-notes-app/pull/4