diff --git a/takwimu/fixtures/supportsetting.json b/takwimu/fixtures/supportsetting.json index 88e928df..b48b98aa 100644 --- a/takwimu/fixtures/supportsetting.json +++ b/takwimu/fixtures/supportsetting.json @@ -1,13 +1 @@ -[ - { - "model": "takwimu.supportsetting", - "pk": 1, - "fields": { - "site": 1, - "hello": "hello@takwimu.africa", - "zendesk": "https://takwimu.zendesk.com", - "address": - "

403 Placeholder

Placeholder

Placeholder

+0332 3423342322

" - } - } -] +[{"model": "takwimu.supportsetting", "pk": 1, "fields": {"site": 1, "hello": "hello@takwimu.africa", "zendesk": "https://takwimu.zendesk.com", "community": "https://takwimu.zendesk.com/hc/en-us/community/topics", "address": "

403 Placeholder

Placeholder

Placeholder

+0332 3423342322

"}}] \ No newline at end of file diff --git a/takwimu/migrations/0030_supportsetting_community.py b/takwimu/migrations/0030_supportsetting_community.py new file mode 100644 index 00000000..dbc68d25 --- /dev/null +++ b/takwimu/migrations/0030_supportsetting_community.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.13 on 2018-07-25 15:55 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('takwimu', '0029_auto_20180724_1311'), + ] + + operations = [ + migrations.AddField( + model_name='supportsetting', + name='community', + field=models.URLField(blank=True, help_text=b'TAKWIMU Community forums URL', null=True), + ), + ] diff --git a/takwimu/models/dashboard.py b/takwimu/models/dashboard.py index 09414f7c..3be06f27 100644 --- a/takwimu/models/dashboard.py +++ b/takwimu/models/dashboard.py @@ -407,6 +407,8 @@ class SupportSetting(BaseSetting): help_text='TAKWIMU main email address') zendesk = models.URLField(blank=True, null=True, help_text='TAKWIMU Zendesk account URL') + community = models.URLField(blank=True, null=True, + help_text='TAKWIMU Community forums URL') address = RichTextField(blank=True, null=True, help_text='TAKWIMU address') diff --git a/takwimu/templates/takwimu/_includes/sections/updates.html b/takwimu/templates/takwimu/_includes/sections/updates.html index 3292930f..dcfae2c9 100644 --- a/takwimu/templates/takwimu/_includes/sections/updates.html +++ b/takwimu/templates/takwimu/_includes/sections/updates.html @@ -19,7 +19,7 @@

Contribute to Takwimu by sharing your thoughts and ideas on the - community forum

+ community forum