Skip to content

Commit

Permalink
Merge pull request #1799 from watchdogpolska/dev_ext
Browse files Browse the repository at this point in the history
v1.5.20
  • Loading branch information
PiotrIw authored Aug 21, 2024
2 parents e36f9ff + 9963fe5 commit 75596e9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion feder/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PEP 396: The __version__ attribute's value SHOULD be a string.
__version__ = "1.5.19"
__version__ = "1.5.20"


# Compatibility to eg. django-rest-framework
Expand Down
28 changes: 15 additions & 13 deletions feder/letters/templates/letters/_object.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,20 +65,22 @@ <h4>
<i class="fa fa-download"></i>
{% trans 'Download' %}
</a>
<form class="form" method="post">
{%csrf_token%}
<div class="input-group">
<input type="hidden" id="refresh_attachment_text_content"
name="refresh_attachment_text_content" value="true">
<div class="input-group-append">
<button type="submit" id="refresh_attachment_text_content"
class="btn btn-xs btn-primary">
<i class="fa fa-refresh"></i>
{% trans 'Refresh text content' %}
</button>
{% if enable_refresh_attachment_text_content %}
<form class="form" method="post">
{%csrf_token%}
<div class="input-group">
<input type="hidden" id="refresh_attachment_text_content"
name="refresh_attachment_text_content" value="true">
<div class="input-group-append">
<button type="submit" id="refresh_attachment_text_content"
class="btn btn-xs btn-primary">
<i class="fa fa-refresh"></i>
{% trans 'Refresh text content' %}
</button>
</div>
</div>
</div>
</form>
</form>
{% endif %}
{% endif %}
{% else %}
(nieskanowany)
Expand Down
1 change: 1 addition & 0 deletions feder/letters/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class LetterDetailView(SelectRelatedMixin, LetterCommonMixin, DetailView):

def get_context_data(self, **kwargs):
context = super().get_context_data(**kwargs)
context["enable_refresh_attachment_text_content"] = True
return context

def get_queryset(self):
Expand Down
2 changes: 1 addition & 1 deletion requirements/base.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@ openpyxl==3.1.5
langchain==0.2.14
langchain-community==0.2.12
#langchain[llms]==0.1.5
openai==1.41.0
openai==1.42.0
langchain-openai==0.1.22
tiktoken==0.7.0

0 comments on commit 75596e9

Please sign in to comment.