Skip to content

Commit

Permalink
change field in courses
Browse files Browse the repository at this point in the history
  • Loading branch information
urmatovnaa committed Nov 27, 2022
1 parent 01c2005 commit 1e28875
Show file tree
Hide file tree
Showing 30 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ __pycache__
db.sqlite3
identifier.sqlite
.env
media
2 changes: 1 addition & 1 deletion account_app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.3 on 2022-11-27 03:54
# Generated by Django 4.1.3 on 2022-11-27 08:28

import account_app.managers
from django.db import migrations, models
Expand Down
4 changes: 2 additions & 2 deletions article_app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.3 on 2022-11-27 03:54
# Generated by Django 4.1.3 on 2022-11-27 08:28

from django.conf import settings
from django.db import migrations, models
Expand All @@ -10,8 +10,8 @@ class Migration(migrations.Migration):
initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('event_app', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
Expand Down
6 changes: 3 additions & 3 deletions course_app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.3 on 2022-11-27 03:54
# Generated by Django 4.1.3 on 2022-11-27 08:28

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -19,9 +19,9 @@ class Migration(migrations.Migration):
('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='course_photo', verbose_name='Фото')),
('time_study', models.CharField(choices=[(1, 'оффлайн'), (2, 'онлайн')], default=1, max_length=255, verbose_name='Формат обучения')),
('time_study', models.CharField(choices=[('оффлайн', 'оффлайн'), ('онлайн', 'онлайн')], default=1, max_length=255, verbose_name='Формат обучения')),
('duration', models.CharField(max_length=255, verbose_name='Продолжительность курса')),
('certificate', models.CharField(choices=[(1, 'есть'), (2, 'нет')], default=1, max_length=255, verbose_name='Сертификат по окончании')),
('certificate', models.CharField(choices=[('есть', 'есть'), ('нет', 'нет')], default=1, max_length=255, verbose_name='Сертификат по окончании')),
('overview', models.TextField(verbose_name='Описание курса')),
('category', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='event_app.category', verbose_name='Категория')),
('contributors', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='event_app.speaker', verbose_name='Преподаватели')),
Expand Down
4 changes: 2 additions & 2 deletions course_app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

class Course(models.Model):
"""Info about speakers"""
TIME_STUDY_CHOICES = ((1, 'оффлайн'), (2, 'онлайн'),)
CERTIFICATE_CHOICES = ((1, 'есть'), (2, 'нет'),)
TIME_STUDY_CHOICES = (('оффлайн', 'оффлайн'), ('онлайн', 'онлайн'),)
CERTIFICATE_CHOICES = (('есть', 'есть'), ('нет', 'нет'),)
name = models.CharField(verbose_name='Название', max_length=255, unique=True)
photo = models.ImageField(upload_to='course_photo', verbose_name='Фото')
time_study = models.CharField(verbose_name='Формат обучения', choices=TIME_STUDY_CHOICES, default=1,
Expand Down
2 changes: 1 addition & 1 deletion event_app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.1.3 on 2022-11-27 03:54
# Generated by Django 4.1.3 on 2022-11-27 08:28

from django.conf import settings
from django.db import migrations, models
Expand Down
Binary file added media/article_photo/default_profile_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/article_photo/hero-phon.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/article_photo/kakao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/article_photo/operation.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/avatar/kakao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/course_photo/default_profile_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/course_photo/kakao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/default/default_profile_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/cocks.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/hero-phon.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/hero.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/hero_RPxlxmN.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/hero_ZPG5pYu.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_0ZEYSxj.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_5V45IFl.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_IwFhsIa.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_NNsVXzK.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_Snb7y5j.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_V6cf0H5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_bkmPrmV.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_g0IBywb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_iBUkqXM.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added media/event_photo/kakao_y81jWLN.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1e28875

Please sign in to comment.