Skip to content

Commit

Permalink
Merge pull request #604 from uktrade/article-teaser
Browse files Browse the repository at this point in the history
Make article teaser optional
  • Loading branch information
sdonk authored Aug 14, 2019
2 parents 014e294 + 2f55ad9 commit e20b8fb
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Pre-release

### Implemented enhancements
- No ticket - Make teaser field optional in international articles
- No ticket - Add featured industries to Invest home page
- CI-321 - About UK landing page
- CI-276 - Added `CapitalInvestContactFormPage` and `CapitalInvestContactFormSuccessPage`
Expand Down
22 changes: 5 additions & 17 deletions db_template.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
-- PostgreSQL database dump
--

-- Dumped from database version 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)
-- Dumped by pg_dump version 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)
-- Dumped from database version 9.6.14
-- Dumped by pg_dump version 11.3

SET statement_timeout = 0;
SET lock_timeout = 0;
Expand All @@ -12,23 +12,10 @@ SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: -
--

CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;


--
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner: -
--

COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';


SET default_tablespace = '';

SET default_with_oids = false;
Expand Down Expand Up @@ -13227,6 +13214,7 @@ COPY public.django_migrations (id, app, name, applied) FROM stdin;
358 great_international 0064_merge_20190808_0928 2019-08-08 10:30:16.542222+01
359 great_international 0065_auto_20190808_1032 2019-08-08 11:37:15.180475+01
360 great_international 0066_capitalinvestcontactformpage_capitalinvestcontactformsuccesspage 2019-08-09 09:15:15.500538+01
361 great_international 0067_auto_20190814_0940 2019-08-14 10:42:44.256149+01
\.


Expand Down Expand Up @@ -14326,7 +14314,7 @@ SELECT pg_catalog.setval('public.django_content_type_id_seq', 121, true);
-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: -
--

SELECT pg_catalog.setval('public.django_migrations_id_seq', 360, true);
SELECT pg_catalog.setval('public.django_migrations_id_seq', 361, true);


--
Expand Down
58 changes: 58 additions & 0 deletions great_international/migrations/0067_auto_20190814_0940.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Generated by Django 2.2.3 on 2019-08-14 09:40

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('great_international', '0066_capitalinvestcontactformpage_capitalinvestcontactformsuccesspage'),
]

operations = [
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page'),
),
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser_ar',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page', null=True),
),
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser_de',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page', null=True),
),
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser_en_gb',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page', null=True),
),
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser_es',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page', null=True),
),
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser_fr',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page', null=True),
),
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser_ja',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page', null=True),
),
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser_pt',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page', null=True),
),
migrations.AlterField(
model_name='internationalarticlepage',
name='article_teaser_zh_hans',
field=models.TextField(blank=True, help_text='This is a subheading that displays when the article is featured on another page', null=True),
),
]
1 change: 1 addition & 0 deletions great_international/models/great_international.py
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,7 @@ class InternationalArticlePage(panels.InternationalArticlePagePanels, BaseIntern
"below the main title on the article page"
)
article_teaser = models.TextField(
blank=True,
help_text="This is a subheading that displays when the article "
"is featured on another page"
)
Expand Down

0 comments on commit e20b8fb

Please sign in to comment.