Skip to content

Commit

Permalink
FIX: ImproperlyConfigured exception
Browse files Browse the repository at this point in the history
  • Loading branch information
rw-bsi committed Nov 18, 2024
1 parent 7e69c0e commit d6ef6b0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions migrations/0004_alter_useradditionalinfo_company_and_more.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Generated by Django 5.1.3 on 2024-11-18 22:23

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('ifc_validation_models', '0003_version_useradditionalinfo'),
]

operations = [
migrations.AlterField(
model_name='useradditionalinfo',
name='company',
field=models.ForeignKey(blank=True, help_text='What Company the User belongs to (optional)', null=True, on_delete=django.db.models.deletion.CASCADE, to='ifc_validation_models.company'),
),
]
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class UserAdditionalInfo(AuditedBaseModel):
help_text='Whether this user belongs to an Authoring Tool vendor (optional)'
)

company = models.OneToOneField(
company = models.ForeignKey(
Company,
null=True,
blank=True,
Expand Down

0 comments on commit d6ef6b0

Please sign in to comment.