Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link to count #1130

Merged
merged 2 commits into from
Sep 6, 2024
Merged

Link to count #1130

merged 2 commits into from
Sep 6, 2024

Conversation

udgover
Copy link
Collaborator

@udgover udgover commented Sep 6, 2024

This PR adds count attribute to Relationship model. It is used to track how many time a link has been created between two objects.

In the model, the count is set to one by default to reflect database migration. Indeed, since count didn't exit in previous version, this fields would be set to zero which is non-sense since at least one relation exists.

@udgover udgover requested a review from tomchop September 6, 2024 09:04
Copy link
Collaborator

@tomchop tomchop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@udgover udgover merged commit 69aec4a into main Sep 6, 2024
3 checks passed
@udgover udgover deleted the link_to_count branch September 6, 2024 09:22
@sebdraven
Copy link
Collaborator

Thanks !

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

Successfully merging this pull request may close these issues.

3 participants