Open redex-ai opened 11 months ago
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.
Modify the 'updated' field in the 'Note' model to include both date and time by ensuring the DateTimeField uses the appropriate settings.
Ensure that the 'NoteSerializer' properly formats the 'updated' field to include both date and time when serializing and deserializing instances.
In the 'updateNote' view function, make sure to update the 'updated' field with the current date and time when a note is modified.
PULL REQUEST : https://github.com/redex-ai/django-notes-app/pull/4
Save last updated time along with date for each note