from rest_framework import serializers
from .models import Tournament
 
class TournamentSerializer(serializers.ModelSerializer):

    class Meta:

        model = Tournament 

        fields = ['id', 'name', 'description', 'rental_price', 'rented_user_id']
