projects
/
climbing.kerkeslager.com
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a basic index and some models for each area
[climbing.kerkeslager.com]
/
src
/
nutrition
/
models.py
diff --git
a/src/nutrition/models.py
b/src/nutrition/models.py
index
71a8362
..
ba7d415
100644
(file)
--- a/
src/nutrition/models.py
+++ b/
src/nutrition/models.py
@@
-1,3
+1,6
@@
from django.db import models
-# Create your models here.
+class Food(models.Model):
+ name = models.TextField(max_length=64)
+ brand = models.TextField(max_length=64)
+ calories = models.PositiveIntegerField()