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

added user profile #85

Merged
merged 7 commits into from
May 29, 2024
Merged

added user profile #85

merged 7 commits into from
May 29, 2024

Conversation

purple-void
Copy link
Collaborator

-extended the database model for user
-added user profile model
-added test for user profile
-switched around tags and posts methods for consistency

-extended the database model for user
-added user profile model
-added test for user profile
-switched around tags and posts methods for consistency
@purple-void purple-void self-assigned this May 28, 2024
@purple-void purple-void linked an issue May 28, 2024 that may be closed by this pull request
4 tasks
Copy link

vercel bot commented May 28, 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 May 29, 2024 7:19pm

Added back token. We will probably delete this later, but that would be better in a separate branch.
Merging changes to main that were added since the creation of feat/37_user-api
@purple-void purple-void marked this pull request as ready for review May 29, 2024 00:40
@purple-void purple-void added the feature Functionality or significant enhancement for the project label May 29, 2024
@@ -36,9 +39,34 @@ class Posts(models.Model):
lastEditDate: models.DateField = models.DateField(null=True)
lastActivityDate: models.DateField = models.DateField()
title: models.CharField = models.CharField(max_length=TITLE_MAX_LEN)
tags: models.ManyToManyField = models.ManyToManyField(Tags, related_name="posts")
tags: models.ManyToManyField = models.ManyToManyField(Tags, related_name="tags")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks, good catch

backend/core/models.py Outdated Show resolved Hide resolved
backend/rebutify/settings.py Outdated Show resolved Hide resolved
self.assertEqual(response.status_code, 200)
self.assertContains(response, self.sample_tag.tagName)
self.assertContains(response, self.sample_user_profile.username)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Testing 👍👍👍👍👍👍
Everything runs for me

@seporterfield seporterfield mentioned this pull request May 29, 2024
@seporterfield seporterfield merged commit d2fe507 into main May 29, 2024
7 checks passed
@seporterfield seporterfield deleted the feat/37_user-api branch June 4, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[ backend / feature Functionality or significant enhancement for the project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User api
2 participants