while mucking around, set feed to atom to match type I set in autodiscovery link [#26402939]
parent
530e07f383
commit
58cb0c9f2a
|
@ -1,8 +1,10 @@
|
||||||
from django.contrib.auth.models import User
|
from django.contrib.auth.models import User
|
||||||
from django.contrib.syndication.views import Feed
|
from django.contrib.syndication.views import Feed
|
||||||
from django.shortcuts import get_object_or_404
|
from django.shortcuts import get_object_or_404
|
||||||
|
from django.utils.feedgenerator import Atom1Feed
|
||||||
|
|
||||||
class SupporterWishlistFeed(Feed):
|
class SupporterWishlistFeed(Feed):
|
||||||
|
feed_type = Atom1Feed
|
||||||
def get_object(self, request, supporter):
|
def get_object(self, request, supporter):
|
||||||
return get_object_or_404(User, username=supporter)
|
return get_object_or_404(User, username=supporter)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue