Somme, max, …
Voici ou se trouve ma classe : https://sources.grimbox.be/Sulley/Ultron/src/branch/master/ultron/followup/models.py#L238
Problème de query
Oui, je dois garder l'historique pour pouvoir faire des statistiques dessus.
Pour le cando, c'est déjà un choice :
class LearnedSkill(models.Model):
"""
Représente la capacité…
Problème de query
Je peux changer le nom des variables, sans soucis. Mais j'ai aucun soucis pour modifier le cando
…
Et pour le gym
et gymnast
: dans mon code c'est gymnast
mais le copier/coller venait de…
Revoir toutes les fonction xxxxxxxx_create_or_update
Avant de partir sur des class-based, je voudrais déjà bien reviewer mon code pour que ces fonctions se ressemblent comme deux gouttes d'eau, utiliser les reverses (je le faisais déjà…
Revoir toutes les fonction xxxxxxxx_create_or_update
@login_required
@require_http_methods(["GET", "POST"])
def chrono_create_or_update(request, chronoid=None, gymnast_id=None):
"""Création ou modification d'un chrono"""
if…