Skip to content

Comments

Fix issue #59: Add timestamps to models#60

Draft
cld-vasconcelos wants to merge 1 commit intomainfrom
openhands-fix-issue-59
Draft

Fix issue #59: Add timestamps to models#60
cld-vasconcelos wants to merge 1 commit intomainfrom
openhands-fix-issue-59

Conversation

@cld-vasconcelos
Copy link
Owner

This pull request fixes #59.

The issue has been successfully resolved as the primary requirement was to add created_at and updated_at fields to all models. This was achieved by introducing a TimestampedModel abstract class containing these fields. The SoftDeleteModel now inherits from TimestampedModel, ensuring that all models extending SoftDeleteModel will automatically include the timestamp fields. The changes were made in the /workspace/photo/models.py file, which aligns with the task's requirements. Although the test suite could not be executed due to an unavailable local S3 service, the code changes themselves fulfill the task's objectives.

Automatic fix generated by OpenHands 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add timestamps to models

2 participants