aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzapatosgatos <bostwicm@gmail.com>2019-07-03 15:50:00 -0600
committerzapatosgatos <bostwicm@gmail.com>2019-07-03 15:50:00 -0600
commit02eed40cfbd2c4e5cfb6171781a84ff665eecd0f (patch)
treeb9a04348801ea06dbb9b6d4385b234fe526ea314
parentf65e94a0287b9ef3625b92763d476f9e64481009 (diff)
downloadallegiance-02eed40cfbd2c4e5cfb6171781a84ff665eecd0f.tar
allegiance-02eed40cfbd2c4e5cfb6171781a84ff665eecd0f.tar.gz
allegiance-02eed40cfbd2c4e5cfb6171781a84ff665eecd0f.tar.bz2
allegiance-02eed40cfbd2c4e5cfb6171781a84ff665eecd0f.tar.xz
allegiance-02eed40cfbd2c4e5cfb6171781a84ff665eecd0f.zip
Trying to add new field to model, but had errors
-rw-r--r--site/allegiance_site/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/site/allegiance_site/models.py b/site/allegiance_site/models.py
index 75f7749..559785b 100644
--- a/site/allegiance_site/models.py
+++ b/site/allegiance_site/models.py
@@ -10,6 +10,13 @@ from cms.models import CMSPlugin
'''
class Horses(CMSPlugin):
+ '''SIDE = [
+ ('LEFT', "Left"),
+ ('RIGHT', "Right"),
+ ]
+ text_side = models.CharField(max_length=5,
+ choices=SIDE,
+ default='LEFT')'''
name = models.CharField(max_length=50)
description = models.CharField(max_length=1000)
picture = models.ImageField(upload_to="static/img/horses")