Skip to content

Commit

Permalink
5.0b3
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisclark committed Jun 21, 2024
1 parent fe95ebc commit a352d4c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Change Log
This document records all notable changes to `django-sql-explorer <https://github.com/explorerhq/django-sql-explorer>`_.
This project adheres to `Semantic Versioning <https://semver.org/>`_.

`5.0.b2`_ (2024-06-17)
`5.0.b3`_ (2024-06-20)
===========================

* Manage DB connections via the UI (and/or Django Admin). Set EXPLORER_DB_CONNECTIONS_ENABLED
Expand Down
2 changes: 1 addition & 1 deletion explorer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"minor": 0,
"patch": 0,
"releaselevel": "beta",
"serial": 2
"serial": 3
}


Expand Down
14 changes: 9 additions & 5 deletions explorer/templates/connections/database_connection_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,25 @@ <h2>Connection Details</h2>
<th>Engine</th>
<td>{{ object.get_engine_display }}</td>
</tr>
<tr>
<th>Host</th>
<td>{{ object.host }}</td>
</tr>
{% if not object.is_upload %}
<tr>
<th>User</th>
<td>{{ object.user }}</td>
</tr>
<tr>
<th>Host</th>
<td>{{ object.host }}</td>
</tr>
<tr>
<th>Port</th>
<td>{{ object.port }}</td>
</tr>
{% endif %}
</table>
<a href="{% url 'explorer_connection_update' object.pk %}" class="btn btn-info">Edit</a>
{% if object.is_upload %}
<span class="text-info-emphasis">The source of this connection is an uploaded file.</span>
{% endif %}
<a href="{% url 'explorer_connection_update' object.pk %}" class="btn btn-warning">Edit</a>

</div>
{% endblock %}

0 comments on commit a352d4c

Please sign in to comment.