mirror of
https://github.com/MOIS3Y/logs-collector.git
synced 2025-09-13 13:13:01 +02:00
Modify: Archive model - add size field, now use this field for web and admin page
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Generated by Django 4.2 on 2023-08-30 05:52
|
||||
# Generated by Django 4.2 on 2023-09-02 09:30
|
||||
|
||||
import collector.utils
|
||||
from django.conf import settings
|
||||
@@ -47,7 +47,8 @@ class Migration(migrations.Migration):
|
||||
name='Archive',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('file', models.FileField(blank=True, null=True, upload_to=collector.utils.logs_dir_path)),
|
||||
('file', models.FileField(upload_to=collector.utils.logs_dir_path)),
|
||||
('size', models.BigIntegerField(editable=False)),
|
||||
('md5', models.CharField(editable=False, max_length=1024)),
|
||||
('time_create', models.DateTimeField(auto_now_add=True)),
|
||||
('time_update', models.DateTimeField(auto_now=True)),
|
||||
|
@@ -1,19 +0,0 @@
|
||||
# Generated by Django 4.2 on 2023-08-30 08:40
|
||||
|
||||
import collector.utils
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('collector', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='archive',
|
||||
name='file',
|
||||
field=models.FileField(upload_to=collector.utils.logs_dir_path),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user