stash
This commit is contained in:
parent
87ed4570fe
commit
d42be1ea84
12 changed files with 404 additions and 31 deletions
23
core/inventory/migrations/0009_comment.py
Normal file
23
core/inventory/migrations/0009_comment.py
Normal file
|
@ -0,0 +1,23 @@
|
|||
# Generated by Django 4.2.7 on 2024-11-22 22:02
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('inventory', '0008_alter_item_event_alter_itemplacement_container_and_more'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='Comment',
|
||||
fields=[
|
||||
('id', models.AutoField(primary_key=True, serialize=False)),
|
||||
('comment', models.TextField()),
|
||||
('timestamp', models.DateTimeField(auto_now_add=True)),
|
||||
('item', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='comments', to='inventory.item')),
|
||||
],
|
||||
),
|
||||
]
|
|
@ -1,7 +1,6 @@
|
|||
from itertools import groupby
|
||||
|
||||
from django.core.files.base import ContentFile
|
||||
from django.db import models, IntegrityError
|
||||
from django.db import models
|
||||
from django_softdelete.models import SoftDeleteModel, SoftDeleteManager
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue