-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds support up to Wagtail 5.2 (#286)
* Adds Python3.12 and Wagtail 5.0, 5.1 and 5.2 to Tox and remove support for Wagtail <4.1 * Update requirements and tox * fix typo in tox.ini * Remove dependencies (django-social-share and django-colorful) since they are no longer actively maintained --------- Co-authored-by: Marco Badan <[email protected]> Co-authored-by: Carlos Salom Oliver <[email protected]>
- Loading branch information
1 parent
7bf3307
commit 9a20df4
Showing
16 changed files
with
91 additions
and
89 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
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from django.db import models | ||
|
||
from puput.widgets import ColorPickerWidget | ||
|
||
|
||
class ColorField(models.CharField): | ||
""" | ||
A CharField which uses the HTML5 color picker widget. | ||
""" | ||
|
||
def __init__(self, *args, **kwargs): | ||
kwargs["max_length"] = 255 | ||
super().__init__(*args, **kwargs) | ||
|
||
def formfield(self, **kwargs): | ||
kwargs["widget"] = ColorPickerWidget | ||
return super().formfield(**kwargs) |
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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<li class="social-item"> | ||
<div class="facebook-this"> | ||
<a href="https://www.facebook.com/sharer/sharer.php?u={{ share_url }}" target="_blank"> | ||
<span><i class="fa fa-facebook"></i></span> | ||
</a> | ||
</div> | ||
</li> | ||
<li class="social-item"> | ||
<div class="tweet-this"> | ||
<a href="https://twitter.com/share?url={{ share_url }}&text={{ entry.title }}" class="meta-act-link meta-tweet" target="_blank"> | ||
<span><i class="fa fa-twitter"></i></span> | ||
</a> | ||
</div> | ||
</li> | ||
<li class="social-item"> | ||
<div class="linkedin-this"> | ||
<a class="box-social" href="https://www.linkedin.com/shareArticle?url={{ share_url }}&title={{ entry.title }}&summary={{ entry.search_description }}" target="_blank"> | ||
<span><i class="fa fa-linkedin"></i></span> | ||
</a> | ||
</div> | ||
</li> |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from django import forms | ||
|
||
|
||
class ColorPickerWidget(forms.TextInput): | ||
input_type = "color" |
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,6 +1,6 @@ | ||
pytest==7.1.2 | ||
pytest-django==4.1.0 | ||
pytest==8.0.0 | ||
pytest-django==4.8.0 | ||
requests==2.32.0 | ||
model-bakery==1.5.0 | ||
ipdb==0.13.9 | ||
tox==3.27.1 | ||
model-bakery==1.17.0 | ||
ipdb==0.13.13 | ||
tox==4.12.1 |
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