From 7d35060cde4342ea97c707d76a5c298008736f08 Mon Sep 17 00:00:00 2001 From: Ivlev Denis Date: Wed, 25 Apr 2018 14:52:18 +0300 Subject: [PATCH] LIL-399. Use telegram channel url from config --- .../migrations/0008_auto_20180425_1451.py | 18 ++++++++++++++++++ apps/config/models.py | 2 +- project/templates/blocks/footer.html | 2 +- 3 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 apps/config/migrations/0008_auto_20180425_1451.py diff --git a/apps/config/migrations/0008_auto_20180425_1451.py b/apps/config/migrations/0008_auto_20180425_1451.py new file mode 100644 index 00000000..b48f6d2f --- /dev/null +++ b/apps/config/migrations/0008_auto_20180425_1451.py @@ -0,0 +1,18 @@ +# Generated by Django 2.0.4 on 2018-04-25 11:51 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('config', '0007_config_service_telegram_channel'), + ] + + operations = [ + migrations.AlterField( + model_name='config', + name='SERVICE_TELEGRAM_CHANNEL', + field=models.URLField(default='https://t.me/lilschool', max_length=126), + ), + ] diff --git a/apps/config/models.py b/apps/config/models.py index 9079e05a..c6be681d 100644 --- a/apps/config/models.py +++ b/apps/config/models.py @@ -11,7 +11,7 @@ class Config(models.Model): SERVICE_TWITTER_URL = models.URLField(max_length=126, default='#') SERVICE_FB_URL = models.URLField(max_length=126, default='#') SERVICE_YOUTUBE_URL = models.URLField(max_length=126, default='#') - SERVICE_TELEGRAM_CHANNEL = models.URLField(max_length=126, default='#') + SERVICE_TELEGRAM_CHANNEL = models.URLField(max_length=126, default='https://t.me/lilschool') SERVICE_COMMISSION = models.IntegerField(default=10) SERVICE_DISCOUNT_MIN_AMOUNT = models.IntegerField(default=3500) SERVICE_DISCOUNT = models.IntegerField(default=1000) diff --git a/project/templates/blocks/footer.html b/project/templates/blocks/footer.html index 6815dc66..7c58f5a6 100644 --- a/project/templates/blocks/footer.html +++ b/project/templates/blocks/footer.html @@ -38,7 +38,7 @@ {% comment %}
{% endcomment %} - +