parent
63e3319f0d
commit
4f93a36546
8 changed files with 8 additions and 110 deletions
|
@ -21,7 +21,8 @@ from tickets.shared_serializers import RelationSerializer
|
|||
|
||||
class IssueViewSet(viewsets.ModelViewSet):
|
||||
serializer_class = IssueSerializer
|
||||
queryset = IssueThread.objects.all().prefetch_related('state_changes', 'comments', 'emails', 'emails__attachments', 'assignments', 'item_relation_changes', 'shipping_vouchers')
|
||||
queryset = IssueThread.objects.all().prefetch_related('state_changes', 'comments', 'emails', 'emails__attachments',
|
||||
'assignments', 'item_relation_changes', 'shipping_vouchers')
|
||||
|
||||
|
||||
class RelationViewSet(viewsets.ModelViewSet):
|
||||
|
|
|
@ -1,20 +0,0 @@
|
|||
# Generated by Django 4.2.7 on 2024-11-20 01:48
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('inventory', '0007_remove_item_container_alter_item_event_itemplacement'),
|
||||
('tickets', '0011_train_old_spam'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='itemrelation',
|
||||
name='item',
|
||||
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='issue_relations', to='inventory.item'),
|
||||
),
|
||||
]
|
|
@ -1,4 +1,4 @@
|
|||
# Generated by Django 4.2.7 on 2024-11-20 23:34
|
||||
# Generated by Django 4.2.7 on 2024-11-20 23:58
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
@ -7,8 +7,8 @@ import django.db.models.deletion
|
|||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('inventory', '0008_alter_item_event_alter_itemplacement_container_and_more'),
|
||||
('tickets', '0012_alter_itemrelation_item'),
|
||||
('inventory', '0006_alter_event_table'),
|
||||
('tickets', '0011_train_old_spam'),
|
||||
]
|
||||
|
||||
operations = [
|
Loading…
Add table
Add a link
Reference in a new issue