Created an animal model.
authorPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 8 Apr 2015 21:05:32 +0000 (23:05 +0200)
committerPhilipp Spitzer <philipp@spitzer.priv.at>
Wed, 8 Apr 2015 21:05:32 +0000 (23:05 +0200)
alpenzoo_django/settings.py
animals/models.py

index cbba978474298524ba9a409e7c021b83c556738b..35510a47742347003215c415e9f573f2f71f6557 100644 (file)
@@ -37,6 +37,7 @@ INSTALLED_APPS = (
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles',
     'django.contrib.sessions',
     'django.contrib.messages',
     'django.contrib.staticfiles',
+    'animals',
 )
 
 MIDDLEWARE_CLASSES = (
 )
 
 MIDDLEWARE_CLASSES = (
index 71a836239075aa6e6e4ecb700e9c42c95c022d91..b9841f954c54403310f2549cfe0cafe5f3d09030 100644 (file)
@@ -1,3 +1,10 @@
 from django.db import models
 
 # Create your models here.
 from django.db import models
 
 # Create your models here.
+
+class Animal(models.Model):
+    name_german = models.CharField(max_length=255)
+    size_cm = models.IntegerField()
+    edible = models.BooleanField()
+
+