Skip to content

Commit

Permalink
refactor: api
Browse files Browse the repository at this point in the history
  • Loading branch information
itsspriyansh committed Apr 25, 2024
1 parent f81871d commit 93cfeb8
Show file tree
Hide file tree
Showing 7 changed files with 436 additions and 88 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 3.1.5 on 2024-04-25 04:17

import datetime
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('central_mess', '0009_auto_20240424_0342'),
]

operations = [
migrations.AlterField(
model_name='payments',
name='payment_date',
field=models.DateField(default=datetime.date(2024, 4, 25)),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.5 on 2024-04-25 04:17

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('globals', '0013_auto_20240424_2236'),
]

operations = [
migrations.AlterField(
model_name='extrainfo',
name='user_status',
field=models.CharField(choices=[('NEW', 'NEW'), ('PRESENT', 'PRESENT')], default='PRESENT', max_length=50),
),
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.1.5 on 2024-04-25 04:21

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('globals', '0014_auto_20240425_0417'),
]

operations = [
migrations.AlterField(
model_name='extrainfo',
name='user_status',
field=models.CharField(choices=[('PRESENT', 'PRESENT'), ('NEW', 'NEW')], default='PRESENT', max_length=50),
),
]
4 changes: 2 additions & 2 deletions FusionIIIT/applications/gymkhana/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Meta:
class Club_DetailsSerializer(serializers.ModelSerializer):
class Meta:
model=Club_info
fields=['club_name',"co_ordinator","co_coordinator","activity_calender","category",'faculty_incharge']
fields=['club_name',"co_ordinator","co_coordinator","activity_calender","category",'faculty_incharge',"club_file", "status"]

class Session_infoSerializer(serializers.ModelSerializer):
class Meta:
Expand All @@ -50,7 +50,7 @@ class event_infoserializer(serializers.ModelSerializer):

class Meta:
model=Event_info
fields=['club','event_name','incharge','date','venue','start_time','id','details']
fields=['club','event_name','incharge','date','venue','start_time','id','details','status']

class club_budgetserializer(serializers.ModelSerializer):

Expand Down
Loading

0 comments on commit 93cfeb8

Please sign in to comment.