automated push from the terminal
This commit is contained in:
10
tournament/serializers.py
Normal file
10
tournament/serializers.py
Normal file
@@ -0,0 +1,10 @@
|
||||
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']
|
||||
Reference in New Issue
Block a user