Classe Puissance(models.Model) :
p1 = models.IntegerField(default=0)
p2 = models.IntegerField(default=0)
p3 = models.IntegerField(default=0)
p4 = modèles.IntegerField(default=0)
comment faire pour calculer le max de ces champs ?
Classe Puissance(models.Model) :
p1 = models.IntegerField(default=0)
p2 = models.IntegerField(default=0)
p3 = models.IntegerField(default=0)
p4 = modèles.IntegerField(default=0)
comment faire pour calculer le max de ces champs ?
For future reference, English is the base language here. Your posts will likely draw more interest if they’re in English.
Side note: When posting code here, enclose the code between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code, then another line of ```. This forces the forum software to keep your code properly formatted. (I’ve taken the liberty of editing your original post for this.)
— From translate.google.com —
Veuillez être plus précis sur ce que vous recherchez. Voulez-vous savoir quel champ a la plus grande valeur dans chaque instance? Ou cherchez-vous à trouver quelle instance a la valeur la plus importante pour chaque champ? Ou recherchez-vous la plus grande valeur parmi toutes les instances dans tous les champs?
— The original English —
Please be more specific about what you’re looking for. Do you want to know which field has the largest value in each instance? Or are you looking to find which instance has the largest value for each field? Or are you looking for the largest value among all instances across all fields?