-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74d24ba
commit 7380cc1
Showing
4 changed files
with
61 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ venv | |
__pycache__ | ||
db.sqlite3 | ||
identifier.sqlite | ||
.env | ||
.env | ||
media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Generated by Django 4.1.3 on 2022-11-26 10:51 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='Category', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=255)), | ||
], | ||
options={ | ||
'verbose_name': 'Категория', | ||
'verbose_name_plural': 'Категории', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Speakers', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('fullname', models.CharField(max_length=255, verbose_name='ФИО')), | ||
('position', models.CharField(max_length=255, verbose_name='Должность')), | ||
('country', models.CharField(max_length=150, verbose_name='Страна')), | ||
], | ||
options={ | ||
'verbose_name': 'Спикер', | ||
'verbose_name_plural': 'Спикеры', | ||
}, | ||
), | ||
migrations.CreateModel( | ||
name='Events', | ||
fields=[ | ||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), | ||
('name', models.CharField(max_length=255, unique=True, verbose_name='Название')), | ||
('photo', models.ImageField(upload_to='event_photo')), | ||
('time', models.CharField(max_length=255, verbose_name='Время')), | ||
('description', models.TextField(verbose_name='Чему вы научитесь?')), | ||
('about', models.TextField(verbose_name='О программе')), | ||
('category', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='event_app.category', verbose_name='Категория')), | ||
('speaker', models.ManyToManyField(blank=True, to='event_app.speakers', verbose_name='Спикеры')), | ||
], | ||
options={ | ||
'verbose_name': 'Мероприятие', | ||
'verbose_name_plural': 'Мероприятия', | ||
}, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters