[fix]
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
# Generated by Django 4.2.11 on 2024-04-02 00:08
|
||||
# Generated by Django 4.2.11 on 2024-04-02 17:05
|
||||
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
@@ -9,6 +10,7 @@ class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('users', '0001_initial'),
|
||||
('tree', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
@@ -19,6 +21,13 @@ class Migration(migrations.Migration):
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
('title', models.CharField(max_length=255)),
|
||||
('start_date', models.DateField(blank=True, null=True)),
|
||||
('end_date', models.DateField(blank=True, null=True)),
|
||||
('description', models.TextField(default='')),
|
||||
('is_online', models.BooleanField(default=True, verbose_name='оффлайн или онлайн')),
|
||||
('location', models.CharField(default='', max_length=512)),
|
||||
('limitation', models.CharField(choices=[('Everyone', 'everyone'), ('School', 'school'), ('Student', 'student'), ('Professional', 'professional')], default='everyone', max_length=64)),
|
||||
('tree', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='events', to='tree.tree')),
|
||||
('users', models.ManyToManyField(blank=True, related_name='events', to='users.user')),
|
||||
],
|
||||
options={
|
||||
|
||||
Reference in New Issue
Block a user