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

changed incorrect ManyToMany fields #244

Closed
wants to merge 1 commit into from

Conversation

purple-void
Copy link
Collaborator

@purple-void purple-void commented Jul 3, 2024

EDIT: we renamed that branch to be accurate, so this is pull request is closed.

I changed incorrect ManyToMany fields to ForeignKey's (Django's way of ManyToOne).

This includes:
-posts, saved_posts, private_posts, upvotes, and downvotes in UserProfile
-upvotes and downvotes in Posts

Example:
Before, posts were labeled as ManyToMany, meaning that a UserProfile can have many posts (makes sense), but a post can have many UserProfiles (doesn't make sense).

This coincidentally helps with reducing the amount of tables we will use, although this doesn't solve the ManyToMany concern of creating tables.

@purple-void purple-void linked an issue Jul 3, 2024 that may be closed by this pull request
Copy link

vercel bot commented Jul 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rebutify ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 3, 2024 2:05am

@purple-void purple-void self-assigned this Jul 3, 2024
@purple-void purple-void added bug Something isn't working [ backend / labels Jul 3, 2024
@purple-void purple-void marked this pull request as ready for review July 3, 2024 02:07
@purple-void purple-void closed this Jul 3, 2024
@purple-void purple-void deleted the fix/229_user_profile_model branch July 3, 2024 02:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ backend / bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant