Skip to content

Commit f3a26cc

Browse files
committed
Move import to fix backwards-compat
- Legacy-Id: 3796
1 parent f4b6dac commit f3a26cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/announcements/sitemaps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
from django.conf import settings
44
from django.contrib.sitemaps import Sitemap
55
from ietf.announcements.models import Announcement
6-
from ietf.announcements.models import Message
76

87
class NOMCOMAnnouncementsMap(Sitemap):
98
changefreq = "never"
109
def items(self):
1110
if settings.USE_DB_REDESIGN_PROXY_CLASSES:
11+
from ietf.announcements.models import Message
1212
return Message.objects.filter(related_groups__acronym__startswith="nomcom").exclude(related_groups__acronym="nomcom").order_by('-time')
1313
return Announcement.objects.all().filter(nomcom=True)
1414
def location(self, obj):

0 commit comments

Comments
 (0)