
from django.contrib.syndication.views import Feed
from django.core.urlresolvers import reverse
from extensions.models import Extension

class LatestExtensionsFeed(Feed):
    title = "Latest extensions in GNOME Shell Extensions"
    link = "/"
    description = "The latest extensions in GNOME Shell Extensions"

    def items(self):
        return Extension.objects.visible().order_by('-pk')[:10]

    def item_title(self, item):
        return item.name

    def item_description(self, item):
        return item.description


from django.contrib.syndication.views import Feed
from extensions.models import Extension

class LatestExtensionsFeed(Feed):
    title = "Latest extensions in GNOME Shell Extensions"
    link = "/"
    description = "The latest extensions in GNOME Shell Extensions"

    def items(self):
        return Extension.objects.visible().order_by('-pk')[:10]

    def item_title(self, item):
        return item.name

    def item_description(self, item):
        return item.description

Clean up imports