aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
Diffstat (limited to 'pydis_site/apps')
-rw-r--r--pydis_site/apps/content/models/tag.py6
-rw-r--r--pydis_site/apps/content/urls.py2
2 files changed, 4 insertions, 4 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
- )
+ ),
]