-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: more cleanups and validation for ObjectTag
- Loading branch information
1 parent
9aeea89
commit bc30c50
Showing
5 changed files
with
183 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Generated by Django 3.2.19 on 2023-09-29 16:59 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.expressions | ||
import openedx_learning.lib.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('oel_tagging', '0009_alter_objecttag_object_id'), | ||
] | ||
|
||
operations = [ | ||
migrations.DeleteModel( | ||
name='ModelObjectTag', | ||
), | ||
migrations.DeleteModel( | ||
name='UserModelObjectTag', | ||
), | ||
migrations.AlterUniqueTogether( | ||
name='objecttag', | ||
unique_together={('object_id', 'taxonomy', 'tag_id'), ('object_id', 'taxonomy', '_value')}, | ||
), | ||
# ObjectTag.Tag can be blank | ||
migrations.AlterField( | ||
model_name='objecttag', | ||
name='tag', | ||
field=models.ForeignKey(blank=True, default=None, help_text="Tag associated with this object tag. Provides the tag's 'value' if set.", null=True, on_delete=django.db.models.deletion.SET_NULL, to='oel_tagging.tag'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.