X-Git-Url: https://code.kerkeslager.com/?a=blobdiff_plain;f=src%2Ftraining%2Fmodels.py;h=238b40eb91334be6d8b015ee2268e8688fb567c6;hb=cf5da88d1a9a825414440e536333eb700565dba9;hp=618588d52ee555b5ea09dc4200fadc3ae0456928;hpb=3977607665b62dae546113a3888fd3588d743283;p=climbing.kerkeslager.com diff --git a/src/training/models.py b/src/training/models.py index 618588d..238b40e 100644 --- a/src/training/models.py +++ b/src/training/models.py @@ -2,4 +2,7 @@ from django.db import models class Exercise(models.Model): name = models.CharField(max_length=64) - notes = models.TextField() + notes = models.TextField(blank=True, null=True) + + def __str__(self): + return self.name