mirror of
https://github.com/MOIS3Y/logs-collector.git
synced 2025-02-01 09:20:52 +01:00
Modify: now filefield in Archive model is required
This commit is contained in:
parent
b65481207a
commit
9ae11345d5
@ -0,0 +1,19 @@
|
|||||||
|
# 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),
|
||||||
|
),
|
||||||
|
]
|
@ -10,7 +10,7 @@ from .utils import logs_dir_path
|
|||||||
|
|
||||||
|
|
||||||
class Archive(models.Model):
|
class Archive(models.Model):
|
||||||
file = models.FileField(upload_to=logs_dir_path, blank=True, null=True)
|
file = models.FileField(upload_to=logs_dir_path)
|
||||||
md5 = models.CharField(max_length=1024, editable=False)
|
md5 = models.CharField(max_length=1024, editable=False)
|
||||||
time_create = models.DateTimeField(auto_now_add=True)
|
time_create = models.DateTimeField(auto_now_add=True)
|
||||||
time_update = models.DateTimeField(auto_now=True)
|
time_update = models.DateTimeField(auto_now=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user