Skip to content

Commit 8b3aa56

Browse files
committed
add migration
Put in correct field
1 parent fc31b67 commit 8b3aa56

2 files changed

Lines changed: 19 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 4.1 on 2022-09-05 06:28
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
("community_db", "0005_remove_person_user_person_users"),
10+
]
11+
12+
operations = [
13+
migrations.AddField(
14+
model_name="person",
15+
name="favourite_project",
16+
field=models.CharField(blank=True, max_length=200),
17+
),
18+
]

src/community_db/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ class Countries(models.TextChoices):
285285
last_name = models.CharField(max_length=100)
286286
country = models.CharField(max_length=100, choices=Countries.choices, blank=True)
287287
mobile_number = models.CharField(max_length=20, blank=True)
288+
favourite_project = models.CharField(max_length=200, blank=True)
288289
users = models.ManyToManyField(settings.AUTH_USER_MODEL)
289290

290291
class Meta:

0 commit comments

Comments
 (0)