mirror of
https://github.com/lemeow125/Borrowing-TrackerBackend.git
synced 2024-11-16 22:09:27 +08:00
Format timestamp properly for transaction
This commit is contained in:
parent
fd6da2de81
commit
5c8a99675d
1 changed files with 2 additions and 0 deletions
|
@ -30,6 +30,8 @@ class TransactionSerializer(serializers.HyperlinkedModelSerializer):
|
|||
many=False, slug_field='id', queryset=CustomUser.objects.all(), required=True, allow_null=False)
|
||||
equipments = serializers.SlugRelatedField(
|
||||
many=True, slug_field='id', queryset=EquipmentInstance.objects.all(), required=True)
|
||||
timestamp = serializers.DateTimeField(
|
||||
format="%m-%d-%Y %I:%M %p", read_only=True)
|
||||
|
||||
transaction_status = serializers.ChoiceField(
|
||||
choices=Transaction.TRANSACTION_STATUS_CHOICES)
|
||||
|
|
Loading…
Reference in a new issue