--- /dev/null
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10.3 on 2016-11-12 14:54
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('quotes', '0003_auto_20161101_0132'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='author',
+ options={'ordering': ['name']},
+ ),
+ migrations.AlterModelOptions(
+ name='quote',
+ options={'ordering': ['pk']},
+ ),
+ migrations.AlterModelOptions(
+ name='work',
+ options={'ordering': ['name']},
+ ),
+ ]
--- /dev/null
+# -*- coding: utf-8 -*-
+# Generated by Django 1.10.3 on 2016-11-12 15:02
+from __future__ import unicode_literals
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('quotes', '0004_auto_20161112_1454'),
+ ]
+
+ operations = [
+ migrations.AlterModelOptions(
+ name='quote',
+ options={'ordering': ['-pk']},
+ ),
+ ]
help_text="Date of death (leave blank \
if still alive!)")
+ class Meta(CommonData.Meta):
+ ordering = ['name']
+
def __unicode__(self):
return self.name
def get_absolute_url(self):
return reverse('quotes:work', args=[str(self.id)])
+ class Meta(CommonData.Meta):
+ ordering = ['name']
+
class Quote(CommonData):
text = HTMLField()
tags = models.ManyToManyField(QuoteTag, blank=True)
def get_absolute_url(self):
return reverse('quotes:onequote', args=[str(self.id)])
+
+ class Meta(CommonData.Meta):
+ ordering = ['-pk']
+