projects
/
climbing.kerkeslager.com
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
67ccd61d22d86d077bca4f2294f884ba925eba35
[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)