Skip to content

Commit 0cda236

Browse files
feat(enterprise) ENT-11235: Fix EnterpriseCustomerAdmin invited_date and related models/signals
1 parent 38bf777 commit 0cda236

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

enterprise/migrations/0243_enterprisecustomeradmin_invited_date_and_more.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ class Migration(migrations.Migration):
1414
model_name="enterprisecustomeradmin",
1515
name="invited_date",
1616
field=models.DateTimeField(
17-
blank=True, help_text="Timestamp when the admin was invited.", null=True
17+
blank=True,
18+
help_text="Timestamp when the admin was invited.",
19+
null=True
1820
),
1921
),
2022
migrations.AddField(

enterprise/models.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3976,12 +3976,6 @@ class PendingEnterpriseCustomerAdminUser(TimeStampedModel):
39763976
help_text="Timestamp when the admin invite was created."
39773977
)
39783978

3979-
invited_date = models.DateTimeField(
3980-
null=True,
3981-
blank=True,
3982-
help_text="Timestamp when the admin invite was created."
3983-
)
3984-
39853979
class Meta:
39863980
app_label = 'enterprise'
39873981
ordering = ['created']

enterprise/signals.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from django.db.models.signals import post_delete, post_save, pre_save
1010
from django.dispatch import receiver
1111
from django.utils.timezone import now
12-
from django.utils.timezone import now
1312

1413
from enterprise import models, roles_api
1514
from enterprise.api import activate_admin_permissions
@@ -19,10 +18,6 @@
1918
EnterpriseCustomerAdmin,
2019
PendingEnterpriseCustomerAdminUser,
2120
)
22-
from enterprise.models import (
23-
EnterpriseCustomerAdmin,
24-
PendingEnterpriseCustomerAdminUser,
25-
)
2621
from enterprise.tasks import create_enterprise_enrollment
2722
from enterprise.utils import (
2823
NotConnectedToOpenEdX,

0 commit comments

Comments
 (0)