Skip to content

Commit

Permalink
small changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Porcupine1 committed Oct 13, 2024
1 parent 2ec546e commit 1c14e0a
Showing 1 changed file with 47 additions and 49 deletions.
96 changes: 47 additions & 49 deletions backend/clubs/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2159,56 +2159,54 @@ def club_list_diff(self, request, *args, **kwargs):
Return old and new data for clubs that are pending approval.
---
responses:
"200":
content:
application/json:
schema:
type: object
items:
"200":
content:
application/json:
schema:
type: object
properties:
code:
type: object
description: club code
properties:
name:
type: object
description: Changes in the name field
properties:
old:
type: string
description: >
Old name of the club
new:
type: string
description: >
New name of the club
description:
type: object
description: >
Changes in the club description
properties:
old:
type: string
description: >
Old description of the club
new:
type: string
description: >
New description of the club
image:
type: object
description: >
Changes in the image of the club
properties:
old:
type: string
description: >
Old image URL of the club
new:
type: string
description: >
New image URL of the club
description: >
"Response object where the keys are club codes"
additionalProperties:
type: object
description: >
"Details of the changes for a particular club"
properties:
name:
type: object
description: "Changes in the name field"
properties:
old:
type: string
description: "Old name of the club"
new:
type: string
description: "New name of the club"
description:
type: object
description: >
"Changes in the club description"
properties:
old:
type: string
description: >
"Old description of the club"
new:
type: string
description: >
"New description of the club"
image:
type: object
description: >
"Changes in the image of the club"
properties:
old:
type: string
description: >
"Old image URL of the club"
new:
type: string
description: >
"New image URL of the club"
---
"""
pending_clubs = Club.objects.filter(approved=None, active=True).only(
Expand Down

0 comments on commit 1c14e0a

Please sign in to comment.