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

fix#17 : create base for players #45

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Marwa-rez
Copy link
Contributor

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

@Marwa-rez Marwa-rez linked an issue Nov 27, 2022 that may be closed by this pull request
Copy link
Contributor

@Amustache Amustache left a 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!
Copy link
Contributor

Choose a reason for hiding this comment

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

Faut pas push ça

Copy link
Contributor Author

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 ?

Comment on lines +23 to +27


# sur-roles de player : PAS MTN
#class Manager(Player):
# activity = models.ForeignKey("activity.Activity", on_delete=models.CASCADE)
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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

@Amustache
Copy link
Contributor

Amustache commented Nov 28, 2022

Ah oui et la convention pour un titre de MR c'est "Fix #<numero>: <titre>", ici par exemple "Fix #17: Create base for Players" (;

@Marwa-rez Marwa-rez changed the title issue#17 : create base for players fix#17 : create base for players Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Create base for Players
2 participants