-
Notifications
You must be signed in to change notification settings - Fork 161
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
Ajout d'un champ 'licence préférée' dans le profil #4380
Conversation
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.
Je ne suis pas sûr que la méthode utilisée soit la bonne. Plutôt qu'un TextField
, utiliser une clé étrangère vers la table des licences me paraît plus judicieux. ;)
zds/member/models.py
Outdated
@@ -57,6 +57,7 @@ class Meta: | |||
biography = models.TextField('Biographie', blank=True) | |||
karma = models.IntegerField('Karma', default=0) | |||
sign = models.TextField('Signature', max_length=500, blank=True) | |||
licence = models.TextField('Licence préférée', null=True, blank=True) |
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.
Il faut éviter de mettre null=True
aux TextField
.
assuming he just wants the default "All rights reserved" option. | ||
Handle content creation. Since v22, we explicitely ask for user to choose a licence instead of | ||
assuming he just wants the default "All rights reserved" option. Even though, the user can configure | ||
a default licence in his profile. |
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.
Il y a plusieurs fautes dans cette phrase. Il faut utiliser they
au lieu de he
comme pronom pour a user
. Ici, un pluriel est plus adéquat.
Suggestion de @vhf : "Handle content creation. Since v22 a licence must be explicitly selected instead of defaulting to "All rights reserved". Users can however set a default licence in their profile."
Changements faits ;) |
@poulp QA: Ok ! Merci de ta contribution. |
(j'étais en train de faire la QA aussi tiens, les grands esprits se rencontrent :p) |
QA