X-Git-Url: https://code.kerkeslager.com/?a=blobdiff_plain;f=src%2Ftraining%2Fmodels.py;h=238b40eb91334be6d8b015ee2268e8688fb567c6;hb=cf5da88d1a9a825414440e536333eb700565dba9;hp=71a836239075aa6e6e4ecb700e9c42c95c022d91;hpb=a61e6c6f81f4b3b226cdc232272f2cea3a129c2a;p=climbing.kerkeslager.com diff --git a/src/training/models.py b/src/training/models.py index 71a8362..238b40e 100644 --- a/src/training/models.py +++ b/src/training/models.py @@ -1,3 +1,8 @@ from django.db import models -# Create your models here. +class Exercise(models.Model): + name = models.CharField(max_length=64) + notes = models.TextField(blank=True, null=True) + + def __str__(self): + return self.name