Browse files

Merge pull request #8 from xobb1t/support/0.5.X

Fix metatags and sitemaps sync commands
  • Loading branch information...
2 parents aa9823f + 9f3a8ba commit 353ef640a8f9b0ec4d5a1b46bb159f51b0c1ad8a @yumike yumike committed Feb 29, 2012
View
4 lemon/metatags/management/commands/sync_metatags.py
@@ -4,7 +4,7 @@
from django.contrib.contenttypes.models import ContentType
from django.core.management.base import NoArgsCommand
-from lemon import metatags
+from lemon import extradmin
from lemon.metatags.models import Page
@@ -14,7 +14,7 @@ class Command(NoArgsCommand):
def handle_noargs(self, **options):
print 'Starting metatags synchronisation with all registered models.'
- metatags.autodiscover()
+ extradmin.autodiscover()
for model, metatags in metatags.site._registry.items():
print 'Syncing %s.%s model.' % (model._meta.app_label, model.__name__)
self.sync_metatags(model, metatags)
View
4 lemon/sitemaps/management/commands/sync_sitemap.py
@@ -4,7 +4,7 @@
from django.contrib.contenttypes.models import ContentType
from django.core.management.base import NoArgsCommand
-from lemon import sitemaps
+from lemon import extradmin
from lemon.sitemaps.models import Item
@@ -14,7 +14,7 @@ class Command(NoArgsCommand):
def handle_noargs(self, **options):
print 'Starting sitemap.xml synchronization with all registered models.'
- sitemaps.autodiscover()
+ extradmin.autodiscover()
for model, sitemap in sitemaps.site._registry.items():
print 'Syncing %s.%s model.' % (model._meta.app_label, model.__name__)
self.sync_sitemap(model, sitemap)

0 comments on commit 353ef64

Please sign in to comment.