projects
/
climbing.kerkeslager.com
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Admin interface for nutrition and training
[climbing.kerkeslager.com]
/
src
/
training
/
models.py
diff --git
a/src/training/models.py
b/src/training/models.py
index
618588d
..
238b40e
100644
(file)
--- 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)
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