projects
/
climbing.kerkeslager.com
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Admin interface for nutrition and training
[climbing.kerkeslager.com]
/
src
/
nutrition
/
models.py
1
from django.db import models
2
3
class Food(models.Model):
4
name = models.CharField(max_length=64)
5
brand = models.CharField(max_length=64)
6
calories = models.PositiveIntegerField()
7
8
def __str__(self):
9
return '{} ({})'.format(self.name, self.brand)