@H#eMy1pWpJV8QVK
literal 0
HcmV?d00001
diff --git a/demo/migration/models.py b/demo/migration/models.py
index 6d7a892..4b27c7e 100644
--- a/demo/migration/models.py
+++ b/demo/migration/models.py
@@ -1,6 +1,15 @@
from django.db import models
+from datetime import date
-# Create your models here.
+
+class ShoppingItem(models.Model):
+ created_at = models.DateField(default=date.today)
+ name = models.CharField(max_length=120)
+ done = models.BooleanField(default=False)
+
+ def __str__(self):
+ return str(self.id) + ' - ' + self.name
+
class Product(models.Model):
title = models.CharField(max_length=120)
content= models.TextField(blank=True, null=True)
diff --git a/demo/migration/templates/migration.html b/demo/migration/templates/migration.html
index ecd191f..15ab06f 100644
--- a/demo/migration/templates/migration.html
+++ b/demo/migration/templates/migration.html
@@ -7,26 +7,28 @@
@@ -34,14 +36,25 @@
+ {% for item in all_items %}
- Element 1
+ {{item.name}}
-
- Element 2
-
-
+ {% endfor %}
+
+