Move import to fix backwards-compat

- Legacy-Id: 3796
This commit is contained in:
Ole Laursen 2012-01-05 15:31:14 +00:00
parent f4b6dac81f
commit f3a26cc3fa

View file

@ -3,12 +3,12 @@
from django.conf import settings
from django.contrib.sitemaps import Sitemap
from ietf.announcements.models import Announcement
from ietf.announcements.models import Message
class NOMCOMAnnouncementsMap(Sitemap):
changefreq = "never"
def items(self):
if settings.USE_DB_REDESIGN_PROXY_CLASSES:
from ietf.announcements.models import Message
return Message.objects.filter(related_groups__acronym__startswith="nomcom").exclude(related_groups__acronym="nomcom").order_by('-time')
return Announcement.objects.all().filter(nomcom=True)
def location(self, obj):