aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site')
-rw-r--r--pydis_site/apps/content/models/tag.py6
-rw-r--r--pydis_site/apps/content/urls.py2
-rw-r--r--pydis_site/templates/content/tag.html2
3 files changed, 5 insertions, 5 deletions
diff --git a/pydis_site/apps/content/models/tag.py b/pydis_site/apps/content/models/tag.py
index c504ce21..73d6cb79 100644
--- a/pydis_site/apps/content/models/tag.py
+++ b/pydis_site/apps/content/models/tag.py
@@ -5,7 +5,7 @@ from django.db import models
class Commit(models.Model):
- """A git commit."""
+ """A git commit from the Python Discord Bot project."""
URL_BASE = "https://github.com/python-discord/bot/commit/"
@@ -28,8 +28,8 @@ class Commit(models.Model):
for line in self.message.split("\n"):
yield line
- def format_users(self) -> collections.abc.Iterable[str]:
- """Return a nice representation of the user(s)' name and email."""
+ def format_authors(self) -> collections.abc.Iterable[str]:
+ """Return a nice representation of the author(s)' name and email."""
for author in json.loads(self.author):
yield f"{author['name']} <{author['email']}>"
diff --git a/pydis_site/apps/content/urls.py b/pydis_site/apps/content/urls.py
index 03c0015a..163d05bc 100644
--- a/pydis_site/apps/content/urls.py
+++ b/pydis_site/apps/content/urls.py
@@ -63,5 +63,5 @@ urlpatterns = [
views.PageOrCategoryView.as_view(),
name='page_category',
distill_func=get_all_pages
- )
+ ),
]
diff --git a/pydis_site/templates/content/tag.html b/pydis_site/templates/content/tag.html
index 655dd786..fa9e44f5 100644
--- a/pydis_site/templates/content/tag.html
+++ b/pydis_site/templates/content/tag.html
@@ -27,7 +27,7 @@
<div class="dropdown-menu">
<div class="dropdown-content">
<div class="dropdown-item">Last edited by:</div>
- {% for user in tag.last_commit.format_users %}
+ {% for user in tag.last_commit.format_authors %}
<div class="dropdown-item">{{ user }}</div>
{% endfor %}
<div class="dropdown-divider"></div>