-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proxito: define dummy dashboard URLs for addons serializers (#11227)
* Proxito: define dummy dashboard URLs for addons serializers This PR defines dummy dashboard URLs in El Proxito to allow calling `reverse()` for APIv3 serializers used under `/_/addons/` and return `*.urls` fields for resources. Closes readthedocs/readthedocs-ops#1323 * Proxito: define dummy dashboard URLs for addons serializers This PR defines dummy dashboard URLs in El Proxito to allow calling `reverse()` for APIv3 serializers used under `/_/addons/` and return `*.urls` fields for resources. Closes readthedocs/readthedocs-ops#1323 * Update tests * "I'm a teapot" view for dummy URLs * Update HTTP status code * Reduce number of DB queries
- Loading branch information
Showing
6 changed files
with
104 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% extends "errors/base.html" %} | ||
{% load core_tags %} | ||
{% load i18n %} | ||
|
||
{% block title %} | ||
{% trans "418. I'm a teapot" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h1>{% trans "418. I'm a teapot" %}</h1> | ||
{% endblock %} |