Skip to content

Commit

Permalink
update: add araboc_name in the profile model
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali-Salman29 committed Jun 10, 2024
1 parent c0a2377 commit 3f9e529
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.20 on 2024-06-07 08:35

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('student', '0047_userprofile_terms_and_conditions'),
]

operations = [
migrations.AddField(
model_name='userprofile',
name='arabic_name',
field=models.CharField(blank=True, db_index=True, max_length=255),
),
]
1 change: 1 addition & 0 deletions common/djangoapps/student/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ class Meta:
# This is not visible to other users, but could introduce holes later
user = models.OneToOneField(User, unique=True, db_index=True, related_name='profile', on_delete=models.CASCADE)
name = models.CharField(blank=True, max_length=255, db_index=True)
arabic_name = models.CharField(blank=True, max_length=255, db_index=True)

# How meta field works: meta will only store those fields which are available in extended_profile configuration,
# so in order to store a field in meta, it must be available in extended_profile configuration.
Expand Down

0 comments on commit 3f9e529

Please sign in to comment.