i tried to use this for datatables, but it was taking too long to get a response, so i'm abandoning this for the moment, but the support's there for the future
13 lines
263 B
Python
13 lines
263 B
Python
"""Serializers for the karma objects."""
|
|
|
|
from rest_framework import serializers
|
|
|
|
from karma.models import KarmaKey
|
|
|
|
|
|
class KarmaKeySerializer(serializers.ModelSerializer):
|
|
|
|
class Meta:
|
|
model = KarmaKey
|
|
fields = ('id', 'key', 'score', 'rank')
|