Skip to content

Commit

Permalink
Search Enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
aishwary023 committed Jun 8, 2020
1 parent e6e71af commit 3dee629
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Binary file modified db.sqlite3
Binary file not shown.
19 changes: 19 additions & 0 deletions vendors/migrations/0004_auto_20200608_0804.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 3.0.7 on 2020-06-08 08:04

from django.db import migrations
import phonenumber_field.modelfields


class Migration(migrations.Migration):

dependencies = [
('vendors', '0003_auto_20200608_0758'),
]

operations = [
migrations.AlterField(
model_name='vendor',
name='phone',
field=phonenumber_field.modelfields.PhoneNumberField(max_length=12, region=None),
),
]
2 changes: 1 addition & 1 deletion vendors/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Vendor(models.Model):
address = models.CharField(max_length=255)
city = models.CharField(max_length=255)
pincode = models.PositiveIntegerField(validators=[MaxValueValidator(999999)])
phone = models.CharField(max_length=12)
phone = PhoneNumberField(max_length=12)
details = models.CharField(max_length=255)

def __str__(self):
Expand Down

0 comments on commit 3dee629

Please sign in to comment.