-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix#17 : create base for players #45
base: master
Are you sure you want to change the base?
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.
Faut enlever les commentaires qui trainent
Sinon ça semble ok !
@@ -0,0 +1,28 @@ | |||
# SECURITY WARNING: keep the secret key used in production secret! |
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.
Faut pas push ça
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.
comment je fais pour pas push un truc en particulier ?
|
||
|
||
# sur-roles de player : PAS MTN | ||
#class Manager(Player): | ||
# activity = models.ForeignKey("activity.Activity", on_delete=models.CASCADE) |
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.
Enlever
path("player/new", PlayerCreateView.as_view(), name="player_new"), | ||
path("player/<pk>/show", player_show, name="player_show"), | ||
#path("player/<pk>/select", player_select, name="player_select"), --> we don't select players lol |
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.
Enlever, pas commenter
|
||
|
||
from .models import Player | ||
|
||
|
||
class PlayerCreateView(CreateView): | ||
model = Player | ||
fields = ["name", "discord", "name"] | ||
fields = ["name", "event", "discord", "Telegram"] #comment faire pr qu'il affiche une liste d'events quand je veux créer / edit un player |
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.
Faut pas mettre de commentaires qui sont des questions ou qui ne sont pas utiles pour la personne qui code/review.
Si tu le souhaites tu peux le mettre directement en question dans l'issue ou dans la MR
Ah oui et la convention pour un titre de MR c'est "Fix #<numero>: <titre>", ici par exemple "Fix #17: Create base for Players" (; |
petit début, il manque encore de fix l'interface de base (issue#44) pour pouvoir accéder aux menus : new player et players (list). Sinon on peut tester en tapant directement les URLs