-
Notifications
You must be signed in to change notification settings - Fork 6
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
Feature/megafon #44
base: develop
Are you sure you want to change the base?
Feature/megafon #44
Conversation
Now manage with ObjectProfileLink
@@ -41,7 +41,7 @@ class ObjectProfileLink(models.Model): | |||
|
|||
@receiver(post_save, sender=User) | |||
def create_profile_on_user_signup(sender, created, instance, **kwargs): | |||
if created: | |||
if created and not instance.is_superuser: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ça me semble OK, mais je me demande juste ce qui rend cet ajout nécessaire ?
@atiberghien ça me semble putot cool après une 2e lecture du code; j'ai pas plus de recul que ça sur MPTT, mais j'aime bien le fait de coder Questions et Réponses avec le mème modèle (Post) et c''est cool de voir qu'on réutilise aussi les autres briques (ObjectProfileLink). |
@atiberghien je crée ce PR pour pouvoir discuter dessus