Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/calculated_fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
3 changes: 2 additions & 1 deletion docs/logo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ Now copy the :code:`base_site.html` from the admin app to :code:`templates\admin
<h1 id="site-name">
<a href="{% url 'admin:index' %}">
<img src="{% static 'umsra_logo.png' %}" height="40px" />
{{ site_header|default:_('Django administration') }}
</a>
</h1>

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 %}

Expand Down