This commit is contained in:
j3d1 2024-06-14 20:11:04 +02:00
parent 573f11e8e4
commit d9fe1e122c
2 changed files with 21 additions and 2 deletions

View file

@ -0,0 +1,19 @@
# Generated by Django 4.2.7 on 2024-06-14 17:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('inventory', '0004_alter_event_created_at_alter_item_created_at'),
('tickets', '0010_itemrelation'),
]
operations = [
migrations.AddField(
model_name='issuethread',
name='related_items',
field=models.ManyToManyField(through='tickets.ItemRelation', to='inventory.item'),
),
]

View file

@ -52,8 +52,8 @@ class IssueSerializer(serializers.ModelSerializer):
ret = super().to_internal_value(data)
if 'state' in data:
ret['state'] = data['state']
# if 'assigned_to' in data:
# ret['assigned_to'] = data['assigned_to']
# if 'assigned_to' in data:
# ret['assigned_to'] = data['assigned_to']
return ret
def validate(self, attrs):