summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/lttr/views.py2
-rw-r--r--app/posts/migrations/0018_auto_20210128_1708.py24
2 files changed, 25 insertions, 1 deletions
diff --git a/app/lttr/views.py b/app/lttr/views.py
index 7a8b596..9682528 100644
--- a/app/lttr/views.py
+++ b/app/lttr/views.py
@@ -48,7 +48,7 @@ class NewsletterListView(ListView):
def get_queryset(self):
queryset = super(NewsletterListView, self).get_queryset()
- return queryset.filter(newsletter__slug=self.kwargs['slug'])
+ return queryset.filter(newsletter__slug=self.kwargs['slug']).order_by('-pub_date')
def get_context_data(self, **kwargs):
context = super(NewsletterListView, self).get_context_data(**kwargs)
diff --git a/app/posts/migrations/0018_auto_20210128_1708.py b/app/posts/migrations/0018_auto_20210128_1708.py
new file mode 100644
index 0000000..41a1f07
--- /dev/null
+++ b/app/posts/migrations/0018_auto_20210128_1708.py
@@ -0,0 +1,24 @@
+# Generated by Django 3.1 on 2021-01-28 17:08
+
+from django.db import migrations, models
+import django.db.models.deletion
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('sites', '0002_alter_domain_unique'),
+ ('posts', '0017_auto_20201223_1447'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='post',
+ name='old_id',
+ ),
+ migrations.AlterField(
+ model_name='post',
+ name='site',
+ field=models.ForeignKey(default=1, null=True, on_delete=django.db.models.deletion.SET_NULL, to='sites.site'),
+ ),
+ ]