chapeau/things_for_testing/views.py

12 wiersze
368 B
Python
Czysty Zwykły widok Historia

2018-08-12 13:06:26 +00:00
from django.shortcuts import render
2018-08-27 17:53:52 +00:00
from django_kepi.views import CollectionView
from django_kepi.models import Following
2018-08-27 17:53:52 +00:00
from things_for_testing.models import *
class ThingUserCollection(CollectionView):
def get_collection_items(self, *args, **kwargs):
return ThingUser.objects.all()
def _stringify_object(self, obj):
return obj.serialize()