Make URL field customizable
This commit is contained in:
16
boards.yml
16
boards.yml
@@ -87,14 +87,14 @@ boards:
|
||||
url: https://readwrite.com
|
||||
rss: https://readwrite.com/feed/
|
||||
- name: Микс блогов
|
||||
slug: the_mix
|
||||
feeds:
|
||||
- url: http://www.rssmix.com/
|
||||
rss: http://www.rssmix.com/
|
||||
columns: 3
|
||||
mix:
|
||||
- http://vas3k.ru/rss/
|
||||
- http://nedbatchelder.com/blog/rss.xml
|
||||
slug: the_mix
|
||||
feeds:
|
||||
- url: http://www.rssmix.com/
|
||||
rss: http://www.rssmix.com/
|
||||
columns: 3
|
||||
mix:
|
||||
- http://vas3k.ru/rss/
|
||||
- http://nedbatchelder.com/blog/rss.xml
|
||||
- name: Мейнстрим
|
||||
slug: mainstream
|
||||
feeds:
|
||||
|
||||
23
boards/migrations/0007_auto_20200122_1526.py
Normal file
23
boards/migrations/0007_auto_20200122_1526.py
Normal file
@@ -0,0 +1,23 @@
|
||||
# Generated by Django 2.2.8 on 2020-01-22 15:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('boards', '0006_boardfeed_conditions'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='board',
|
||||
name='curator_bio',
|
||||
field=models.TextField(null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name='board',
|
||||
name='curator_url',
|
||||
field=models.TextField(null=True),
|
||||
),
|
||||
]
|
||||
@@ -18,8 +18,8 @@ class Board(models.Model):
|
||||
|
||||
curator_name = models.CharField(max_length=120)
|
||||
curator_title = models.CharField(max_length=120, null=True)
|
||||
curator_url = models.URLField(null=True)
|
||||
curator_bio = models.CharField(max_length=120, null=True)
|
||||
curator_url = models.TextField(null=True)
|
||||
curator_bio = models.TextField(null=True)
|
||||
curator_footer = models.TextField(null=True)
|
||||
|
||||
schema = models.TextField(null=True)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
{% if board.curator_url %}
|
||||
<div class="curator-url">
|
||||
👉 от <a href="{{ board.curator_url }}" target="_blank">{{ board.curator_url|pretty_url }}</a>
|
||||
👉 {{ board.curator_url|safe }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user