]> gitweb.fperrin.net Git - djsite.git/blobdiff - quotes/migrations/0002_context_author.py
Add a 'work' concept
[djsite.git] / quotes / migrations / 0002_context_author.py
similarity index 62%
rename from quotes/migrations/0002_author_notes.py
rename to quotes/migrations/0002_context_author.py
index d7cc2f4e3cb457726851662a072b8e28ac9dc0ae..79ca5e31a0316e0d4186af9eac4bd3280c53dce8 100644 (file)
@@ -12,8 +12,9 @@ class Migration(migrations.Migration):
 
     operations = [
         migrations.AddField(
-            model_name='author',
-            name='notes',
-            field=models.TextField(blank=True),
+            model_name='context',
+            name='author',
+            field=models.ForeignKey(default=1, to='quotes.Author'),
+            preserve_default=False,
         ),
     ]