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

Updates the Categorizers table when a user is added or removed as a categorizer #139

Closed
wants to merge 2 commits into from

Conversation

ZhongweiL
Copy link
Contributor

Intends to resolve issue #132

Copy link
Member

@khatchad khatchad left a comment

Choose a reason for hiding this comment

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

@mZneit and I have more comments.

@khatchad
Copy link
Member

khatchad commented Nov 4, 2021

Please fix the above errors. Also, did you test this code? Can any new test code be written for this code (unit tests)? Please do not submit PRs without testing the code first. Please make sure that your tests cover the new code. You can actually achieve this with unit testing.

@khatchad
Copy link
Member

khatchad commented Nov 4, 2021

So, for example, you can make a test called test_on_create.

@ZhongweiL
Copy link
Contributor Author

I tested it but not with unit tests, I'll try to write some tests for it.

@@ -70,6 +72,10 @@ class Meta:
def __str__(self):
return self.user

@receiver(m2m_changed)
Copy link
Member

Choose a reason for hiding this comment

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

The relationship between categorizers and Django users is 1:1 not N:N (or M:M).

@khatchad
Copy link
Member

khatchad commented Nov 9, 2021

@ZhongweiL Can you give us a status update?

@ZhongweiL ZhongweiL closed this Nov 12, 2021
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.

2 participants