-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor team member fields in ImpulseUser model and forms
This commit refactors the member fields in the ImpulseUser model and forms into Team model. The member fields have been renamed and moved to the Team model.This change also updates the corresponding templates to reflect the new field names.
- Loading branch information
1 parent
6e5a6cd
commit f2502ee
Showing
7 changed files
with
259 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
corpus/impulse/migrations/0002_remove_impulseuser_is_member2_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
# Generated by Django 4.2.7 on 2023-12-31 05:58 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('impulse', '0001_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='is_member2', | ||
), | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='member2_college_name', | ||
), | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='member2_email', | ||
), | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='member2_from_nitk', | ||
), | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='member2_ieee_member', | ||
), | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='member2_ieee_membership_no', | ||
), | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='member2_name', | ||
), | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='member2_phone', | ||
), | ||
migrations.RemoveField( | ||
model_name='impulseuser', | ||
name='member2_roll_no', | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='is_member', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='member_college_name', | ||
field=models.CharField(default='National Institute of Technology Karnataka', max_length=200), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='member_email', | ||
field=models.EmailField(blank=True, max_length=254, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='member_from_nitk', | ||
field=models.BooleanField(default=True), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='member_ieee_member', | ||
field=models.BooleanField(default=False), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='member_ieee_membership_no', | ||
field=models.BigIntegerField(blank=True, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='member_name', | ||
field=models.CharField(blank=True, max_length=200, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='member_phone', | ||
field=models.CharField(blank=True, max_length=13, null=True), | ||
), | ||
migrations.AddField( | ||
model_name='team', | ||
name='member_roll_no', | ||
field=models.CharField(blank=True, max_length=8, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='impulseuser', | ||
name='roll_no', | ||
field=models.CharField(blank=True, max_length=8, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.