mirror of
https://github.com/bugsink/bugsink.git
synced 2025-12-20 12:29:57 -06:00
this gives me something to look at and work with, despite being wildly incomplete See #146
20 lines
409 B
Python
20 lines
409 B
Python
from rest_framework import serializers
|
|
|
|
from .models import Release
|
|
|
|
|
|
class ReleaseSerializer(serializers.ModelSerializer):
|
|
class Meta:
|
|
model = Release
|
|
|
|
# TODO: distinguish read vs write fields
|
|
fields = [
|
|
"id",
|
|
"project",
|
|
"version",
|
|
"date_released",
|
|
"semver",
|
|
"is_semver",
|
|
"sort_epoch",
|
|
]
|