From dfa52ec07509dff58e19f0a7a3f3aff0cf504032 Mon Sep 17 00:00:00 2001 From: Arlington1985 Date: Mon, 27 Apr 2020 16:58:34 +0200 Subject: [PATCH 1/3] no staticfiles option --- docs/logo.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/logo.rst b/docs/logo.rst index 196ca9d..d26176d 100644 --- a/docs/logo.rst +++ b/docs/logo.rst @@ -41,7 +41,7 @@ With the changes your base_site.html will look like this:: {% extends "admin/base.html" %} - {% load staticfiles %} + {% load static %} {% block title %}{{ title }} | {{ site_title|default:_('Django site admin') }}{% endblock %} From bc70f0fdabbb676dc26dfde9cc56cab62688d1f6 Mon Sep 17 00:00:00 2001 From: Arlington1985 Date: Mon, 27 Apr 2020 17:03:29 +0200 Subject: [PATCH 2/3] Adding site title --- docs/logo.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/logo.rst b/docs/logo.rst index d26176d..72cd39e 100644 --- a/docs/logo.rst +++ b/docs/logo.rst @@ -34,6 +34,7 @@ Now copy the :code:`base_site.html` from the admin app to :code:`templates\admin

+ {{ site_header|default:_('Django administration') }}

From 70ec0c347522b29dbe011a215973776193536455 Mon Sep 17 00:00:00 2001 From: Arlington1985 Date: Tue, 28 Apr 2020 00:42:57 +0200 Subject: [PATCH 3/3] Removed wrong comma --- docs/calculated_fields.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/calculated_fields.rst b/docs/calculated_fields.rst index 2cf3294..36fd1bb 100644 --- a/docs/calculated_fields.rst +++ b/docs/calculated_fields.rst @@ -18,7 +18,7 @@ Adding a method to the model You can add two methods to your :code:`Origin` model like this:: - def hero_count(self,): + def hero_count(self): return self.hero_set.count() def villain_count(self):