Skip to content

Commit

Permalink
rolled out sign up form changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekkhimani committed May 29, 2021
1 parent f95f611 commit 1cc6c7c
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 24 deletions.
6 changes: 3 additions & 3 deletions covid/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class ParticipantForm(forms.ModelForm):

class Meta:
model = Participant
fields = ('state', 'city', 'phone', 'instagramHandle', 'twitterHandle',
'facebookHandle', 'website', 'consent')
exclude = ('verifiedPhone', 'verifiedEmail', 'num_scams', 'num_helps')
fields = ('state', 'city', 'phone', 'consent')
exclude = ('verifiedPhone', 'verifiedEmail', 'num_scams', 'num_helps', 'instagramHandle', 'twitterHandle',
'facebookHandle', 'website',)


class UpdateParticipantForm(forms.ModelForm):
Expand Down
19 changes: 19 additions & 0 deletions covid/migrations/0030_alter_participant_phone.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 3.2.3 on 2021-05-29 15:06

from django.db import migrations
import phonenumber_field.modelfields


class Migration(migrations.Migration):

dependencies = [
('covid', '0029_alter_spammer_options'),
]

operations = [
migrations.AlterField(
model_name='participant',
name='phone',
field=phonenumber_field.modelfields.PhoneNumberField(help_text='OTP verification will be required to create postings. Format: +919999999999', max_length=20, region=None, unique=True),
),
]
2 changes: 1 addition & 1 deletion covid/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Participant(models.Model):

# contacts
phone = PhoneNumberField(max_length=20, unique=True, blank=False,
help_text='You cannot change this later. OTP verification will be required as next step. Format: +919999999999')
help_text='OTP verification will be required to create postings. Format: +919999999999')
instagramHandle = models.URLField(max_length=200, blank=True, help_text="Valid URL expected.")
facebookHandle = models.URLField(max_length=200, blank=True, help_text="Valid URL expected.")
twitterHandle = models.URLField(max_length=200, blank=True, help_text="Valid URL expected.")
Expand Down
14 changes: 0 additions & 14 deletions covid/templates/auth/signup.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,20 +44,6 @@
{{ participant.city|as_crispy_field }}
</div>
</div>
<div class="row">
<div class="form-group col-md-3 mb-0">
{{ participant.instagramHandle|as_crispy_field}}
</div>
<div class="form-group col-md-3 mb-0">
{{ participant.facebookHandle|as_crispy_field }}
</div>
<div class="form-group col-md-3 mb-0">
{{ participant.twitterHandle|as_crispy_field }}
</div>
<div class="form-group col-md-3 mb-0">
{{ participant.website|as_crispy_field }}
</div>
</div>
<div class="row">
{{ participant.consent|as_crispy_field }}
</div>
Expand Down
6 changes: 0 additions & 6 deletions covid_help/settings/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@
{
'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
},
{
'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
},
]


Expand Down
Binary file added marketing/Live.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1cc6c7c

Please sign in to comment.