aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2022-08-23 01:09:01 +0400
committerGravatar Hassan Abouelela <[email protected]>2022-08-23 01:09:01 +0400
commitc0384c626121684ad4e354aeb817fdbd2741fc4f (patch)
tree481b4f8f6177caae26357e2d0aa6a723a22ae745 /pydis_site/apps
parentFix Tests For Tag Metadata (diff)
Improve Tag Commit Naming
Signed-off-by: Hassan Abouelela <[email protected]>
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
- )
+ ),
]