We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 350bb8c + 68e76a7 commit eaa2105Copy full SHA for eaa2105
users/views.py
@@ -109,7 +109,7 @@ def get_context_data(self, **kwargs):
109
# Create any data and add it to the context
110
context['site_name'] = 'contact'
111
context['site_title'] = f'Kontakt - {SITE_NAME}'
112
- context['announcement'] = Announcement.objects.filter(pk=2).first()
+ context['announcement'] = Announcement.objects.order_by('id')[1:2].first()
113
return context
114
115
0 commit comments