Skip to content

Commit

Permalink
remove social sharing image
Browse files Browse the repository at this point in the history
  • Loading branch information
Pat Horsley authored and Pat Horsley committed May 5, 2021
1 parent a810bf0 commit db94777
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.vscode

dist
app
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ poetry add wagtail-favicon
```
INSTALLED_APPS = [
#...
'wagtail.contrib.settings' # <-- ensure you have wagtail settings loaded
'wagtail_favicon',
]
```
Expand All @@ -37,6 +38,8 @@ urlpatterns += [
url(r'', include(favicon_urls)), # <------ add urls to existing urls
]
# note: newer versions of django may use `path` instead of `url`
```

Once you've completed setup you will now be able to access the folloing urls:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "wagtail-favicon"
version = "0.1.7"
version = "0.1.8"
description = "Easily add shortcut icons to any wagtail site."
authors = ["Pat Horsley <[email protected]>"]
readme = 'README.md'
Expand Down
Binary file modified screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 3.1.9 on 2021-05-04 23:47

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('wagtail_favicon', '0001_initial'),
]

operations = [
migrations.RemoveField(
model_name='faviconsettings',
name='social_sharing_image',
),
migrations.AlterField(
model_name='faviconsettings',
name='app_name',
field=models.CharField(blank=True, help_text='App name for manifest.json', max_length=128),
),
]
12 changes: 1 addition & 11 deletions wagtail_favicon/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,7 @@ class FaviconSettings(BaseSetting, FaviconRenditions):
app_name = models.CharField(
max_length=128,
blank=True,
help_text='App name for /icon-manifest.json'
)

social_sharing_image = models.ForeignKey(
get_image_model_string(),
null=True,
blank=True,
on_delete=models.SET_NULL,
related_name='+',
help_text='A default image that wil display when a page is shared on social media'
help_text='App name for manifest.json'
)

panels = [
Expand All @@ -96,7 +87,6 @@ class FaviconSettings(BaseSetting, FaviconRenditions):
heading="Favicon Settings",
classname="collapsible"
),
ImageChooserPanel('social_sharing_image'),
]

class Meta:
Expand Down

0 comments on commit db94777

Please sign in to comment.