-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix problem with urls with an @ present being invalid.
Fix problem with urls with an @ present being invalid. Also bump the version to 1.1.4 and add some extra django, wagtail and python versions for testing.
- Loading branch information
1 parent
1c9980a
commit 1faad40
Showing
13 changed files
with
61 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ exclude = ["sandbox*", "docs*", "tests*"] | |
|
||
[project] | ||
name = "wagtail-external-link-richtext" | ||
version = "1.1.3" | ||
version = "1.1.4" | ||
description = "A feature for the richtext fields in Wagtail" | ||
readme = "README.md" | ||
authors = [{name = "Ruben Hesselink", email = "[email protected]" }] | ||
|
@@ -26,7 +26,8 @@ classifiers = [ | |
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11" | ||
"Programming Language :: Python :: 3.11", | ||
"Programming Language :: Python :: 3.12" | ||
] | ||
keywords = ["richtext", "external", "link", "wagtail", "newtab", "django"] | ||
dependencies = [ | ||
|
@@ -51,4 +52,4 @@ src_paths = ["test_project", "sandbox", "external_link"] | |
|
||
[tool.pytest.ini_options] | ||
DJANGO_SETTINGS_MODULE = "test_project.settings.dev" | ||
python_files = ["tests.py", "*_test.py", "testing/python/*.py"] | ||
python_files = ["tests.py", "*_test.py", "testing/python/*.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,4 +169,4 @@ | |
# Add external link to richtext features | ||
RICHTEXT_FEATURES = [ | ||
"new_tab_link", | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
# Generated by Django 3.2.20 on 2023-07-05 10:55 | ||
|
||
from django.db import migrations | ||
import wagtail.fields | ||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('home', '0001_initial'), | ||
("home", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='homepage', | ||
name='body', | ||
field=wagtail.fields.RichTextField(default='Test'), | ||
model_name="homepage", | ||
name="body", | ||
field=wagtail.fields.RichTextField(default="Test"), | ||
preserve_default=False, | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
from django.db import models | ||
|
||
from wagtail.models import Page | ||
from wagtail.fields import RichTextField | ||
from wagtail.admin.panels import FieldPanel | ||
from wagtail.fields import RichTextField | ||
from wagtail.models import Page | ||
|
||
|
||
class HomePage(Page): | ||
body = RichTextField() | ||
content_panels = Page.content_panels + [ | ||
FieldPanel("body") | ||
] | ||
content_panels = Page.content_panels + [FieldPanel("body")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
Django>=4.0,<4.1 | ||
wagtail>=3.0,<3.1 | ||
wagtail-external-link-richtext | ||
wagtail-external-link-richtext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
# Generated by Django 4.0.10 on 2023-07-06 07:05 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import wagtail.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [ | ||
('wagtailcore', '0069_log_entry_jsonfield'), | ||
("wagtailcore", "0069_log_entry_jsonfield"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='TestPage', | ||
name="TestPage", | ||
fields=[ | ||
('page_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='wagtailcore.page')), | ||
('body', wagtail.fields.RichTextField()), | ||
( | ||
"page_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="wagtailcore.page", | ||
), | ||
), | ||
("body", wagtail.fields.RichTextField()), | ||
], | ||
options={ | ||
'abstract': False, | ||
"abstract": False, | ||
}, | ||
bases=('wagtailcore.page',), | ||
bases=("wagtailcore.page",), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters