You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/12/10 21:43:10 UTC

[airavata-django-portal] 17/24: AIRAVATA-3319 Remove username_locked since it's not needed

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal.git

commit 1026fc735218333b1d52f27e0019cdb55ba7059e
Author: Marcus Christie <ma...@apache.org>
AuthorDate: Tue Dec 7 11:41:36 2021 -0500

    AIRAVATA-3319 Remove username_locked since it's not needed
---
 .../0011_remove_userprofile_username_locked.py          | 17 +++++++++++++++++
 django_airavata/apps/auth/models.py                     |  3 ---
 2 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/django_airavata/apps/auth/migrations/0011_remove_userprofile_username_locked.py b/django_airavata/apps/auth/migrations/0011_remove_userprofile_username_locked.py
new file mode 100644
index 0000000..ca95605
--- /dev/null
+++ b/django_airavata/apps/auth/migrations/0011_remove_userprofile_username_locked.py
@@ -0,0 +1,17 @@
+# Generated by Django 3.2.8 on 2021-12-07 16:40
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('django_airavata_auth', '0010_userprofile_username_initialized'),
+    ]
+
+    operations = [
+        migrations.RemoveField(
+            model_name='userprofile',
+            name='username_locked',
+        ),
+    ]
diff --git a/django_airavata/apps/auth/models.py b/django_airavata/apps/auth/models.py
index cfa53a3..31b5b35 100644
--- a/django_airavata/apps/auth/models.py
+++ b/django_airavata/apps/auth/models.py
@@ -55,9 +55,6 @@ class UserProfile(models.Model):
     user = models.OneToOneField(
         settings.AUTH_USER_MODEL,
         on_delete=models.CASCADE, related_name="user_profile")
-    # TODO: maybe this can be derived from whether there exists an Airavata
-    # User Profile for the user's username
-    username_locked = models.BooleanField(default=False)
     # This flag is only used for external IDP users. It indicates that the
     # username was properly initialized when the user logged in through the
     # external IDP. As for now that means that the username was set to the