Skip to content

Commit

Permalink
Remove profile_picture & address field from User model
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathaniel81 committed May 11, 2024
1 parent 03cdc7d commit 80edadd
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Generated by Django 5.0.4 on 2024-05-11 10:13

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('accounts', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='user',
name='address',
),
migrations.RemoveField(
model_name='user',
name='profile_picture',
),
]
2 changes: 0 additions & 2 deletions accounts/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
class User(AbstractUser):
username = models.CharField(max_length=40, unique=True)
email = models.EmailField(unique=True)
profile_picture = CloudinaryField('image', null=True, blank=True)
address = models.TextField(null=True, blank=True)

USERNAME_FIELD = 'email'
REQUIRED_FIELDS = []
Expand Down

0 comments on commit 80edadd

Please sign in to comment.