mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Deployed f3d41625
with MkDocs version: 0.17.3
This commit is contained in:
parent
f9d66f742d
commit
a575031d22
453
404.html
453
404.html
|
@ -1,453 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<title>Django REST framework</title>
|
||||
<link href="/img/favicon.ico" rel="icon" type="image/x-icon">
|
||||
<link rel="canonical" href="" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="description" content="Django, API, REST">
|
||||
<meta name="author" content="Tom Christie">
|
||||
|
||||
<!-- Le styles -->
|
||||
<link href="/css/prettify.css" rel="stylesheet">
|
||||
<link href="/css/bootstrap.css" rel="stylesheet">
|
||||
<link href="/css/bootstrap-responsive.css" rel="stylesheet">
|
||||
<link href="/css/default.css" rel="stylesheet">
|
||||
|
||||
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
<script type="text/javascript">
|
||||
var _gaq = _gaq || [];
|
||||
_gaq.push(['_setAccount', 'UA-18852272-2']);
|
||||
_gaq.push(['_trackPageview']);
|
||||
|
||||
(function() {
|
||||
var ga = document.createElement('script');
|
||||
ga.type = 'text/javascript';
|
||||
ga.async = true;
|
||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(ga, s);
|
||||
})();
|
||||
</script>
|
||||
|
||||
<style>
|
||||
#sidebarInclude img {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#sidebarInclude a.promo {
|
||||
color: black;
|
||||
}
|
||||
@media (max-width: 767px) {
|
||||
div.promo {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body onload="prettyPrint()" class="-page">
|
||||
|
||||
<div class="wrapper">
|
||||
<div class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="navbar-inner">
|
||||
<div class="container-fluid">
|
||||
<a class="repo-link btn btn-primary btn-small" href="https://github.com/encode/django-rest-framework/tree/master">GitHub</a>
|
||||
<a class="repo-link btn btn-inverse btn-small disabled" rel="prev" >
|
||||
Next <i class="icon-arrow-right icon-white"></i>
|
||||
</a>
|
||||
<a class="repo-link btn btn-inverse btn-small disabled" rel="next" >
|
||||
<i class="icon-arrow-left icon-white"></i> Previous
|
||||
</a>
|
||||
<a id="search_modal_show" class="repo-link btn btn-inverse btn-small" href="#mkdocs_search_modal" data-toggle="modal" data-target="#mkdocs_search_modal"><i class="icon-search icon-white"></i> Search</a>
|
||||
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</a>
|
||||
<a class="brand" href="http://www.django-rest-framework.org">Django REST framework</a>
|
||||
<div class="nav-collapse collapse">
|
||||
|
||||
<!-- Main navigation -->
|
||||
<ul class="nav navbar-nav">
|
||||
|
||||
<li >
|
||||
<a href="/">Home</a>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Tutorial <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
|
||||
<li >
|
||||
<a href="/tutorial/quickstart/">Quickstart</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/tutorial/1-serialization/">1 - Serialization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/tutorial/2-requests-and-responses/">2 - Requests and responses</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/tutorial/3-class-based-views/">3 - Class based views</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/tutorial/4-authentication-and-permissions/">4 - Authentication and permissions</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/tutorial/5-relationships-and-hyperlinked-apis/">5 - Relationships and hyperlinked APIs</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/tutorial/6-viewsets-and-routers/">6 - Viewsets and routers</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/tutorial/7-schemas-and-client-libraries/">7 - Schemas and client libraries</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">API Guide <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/requests/">Requests</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/responses/">Responses</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/views/">Views</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/generic-views/">Generic views</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/viewsets/">Viewsets</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/routers/">Routers</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/parsers/">Parsers</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/renderers/">Renderers</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/serializers/">Serializers</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/fields/">Serializer fields</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/relations/">Serializer relations</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/validators/">Validators</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/authentication/">Authentication</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/permissions/">Permissions</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/throttling/">Throttling</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/filtering/">Filtering</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/pagination/">Pagination</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/versioning/">Versioning</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/content-negotiation/">Content negotiation</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/metadata/">Metadata</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/schemas/">Schemas</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/format-suffixes/">Format suffixes</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/reverse/">Returning URLs</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/exceptions/">Exceptions</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/status-codes/">Status codes</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/testing/">Testing</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/api-guide/settings/">Settings</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="dropdown">
|
||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Topics <b class="caret"></b></a>
|
||||
<ul class="dropdown-menu">
|
||||
|
||||
<li >
|
||||
<a href="/topics/documenting-your-api/">Documenting your API</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/api-clients/">API Clients</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/internationalization/">Internationalization</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/ajax-csrf-cors/">AJAX, CSRF & CORS</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/html-and-forms/">HTML & Forms</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/browser-enhancements/">Browser Enhancements</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/browsable-api/">The Browsable API</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/rest-hypermedia-hateoas/">REST, Hypermedia & HATEOAS</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/third-party-packages/">Third Party Packages</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/tutorials-and-resources/">Tutorials and Resources</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/contributing/">Contributing to REST framework</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/project-management/">Project management</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/jobs/">Jobs</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.0-announcement/">3.0 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.1-announcement/">3.1 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.2-announcement/">3.2 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.3-announcement/">3.3 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.4-announcement/">3.4 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.5-announcement/">3.5 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.6-announcement/">3.6 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.7-announcement/">3.7 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/3.8-announcement/">3.8 Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/kickstarter-announcement/">Kickstarter Announcement</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/mozilla-grant/">Mozilla Grant</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/funding/">Funding</a>
|
||||
</li>
|
||||
|
||||
<li >
|
||||
<a href="/topics/release-notes/">Release Notes</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="body-content">
|
||||
<div class="container-fluid">
|
||||
<!-- Search Modal -->
|
||||
<div id="mkdocs_search_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h3 id="myModalLabel">Documentation search</h3>
|
||||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<form role="form" autocomplete="off">
|
||||
<div class="form-group">
|
||||
<input type="text" name="q" class="form-control" placeholder="Search..." id="mkdocs-search-query">
|
||||
</div>
|
||||
</form>
|
||||
<div id="mkdocs-search-results"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<div id="table-of-contents">
|
||||
<ul class="nav nav-list side-nav well sidebar-nav-fixed">
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="promo">
|
||||
<hr/>
|
||||
<div id="sidebarInclude">
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="main-content" class="span9">
|
||||
|
||||
|
||||
<h1 id="404-page-not-found" style="text-align: center">404</h1>
|
||||
<p style="text-align: center"><strong>Page not found</strong></p>
|
||||
<p style="text-align: center">Try the <a href="http://www.django-rest-framework.org/">homepage</a>, or <a href="#searchModal" data-toggle="modal">search the documentation</a>.</p>
|
||||
|
||||
|
||||
|
||||
</div> <!--/span-->
|
||||
</div> <!--/row-->
|
||||
</div> <!--/.fluid-container-->
|
||||
</div> <!--/.body content-->
|
||||
<div id="push"></div>
|
||||
</div> <!--/.wrapper -->
|
||||
|
||||
<footer class="span12">
|
||||
<p>Documentation built with <a href="http://www.mkdocs.org/">MkDocs</a>.
|
||||
</p>
|
||||
</footer>
|
||||
|
||||
<!-- Le javascript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="/js/jquery-1.8.1-min.js"></script>
|
||||
<script src="/js/prettify-1.0.js"></script>
|
||||
<script src="/js/bootstrap-2.1.1-min.js"></script>
|
||||
<script src="https://fund.django-rest-framework.org/sidebar_include.js"></script>
|
||||
<script>var base_url = '';</script>
|
||||
<script src="/mkdocs/js/require.js"></script>
|
||||
<script src="/js/theme.js"></script>
|
||||
|
||||
<script>
|
||||
var shiftWindow = function() {
|
||||
scrollBy(0, -50)
|
||||
};
|
||||
|
||||
if (location.hash) shiftWindow();
|
||||
window.addEventListener("hashchange", shiftWindow);
|
||||
|
||||
$('.dropdown-menu').on('click touchstart', function(event) {
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
// Dynamically force sidenav/dropdown to no higher than browser window
|
||||
$('.side-nav, .dropdown-menu').css('max-height', window.innerHeight - 130);
|
||||
|
||||
$(function() {
|
||||
$(window).resize(function() {
|
||||
$('.side-nav, .dropdown-menu').css('max-height', window.innerHeight - 130);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -507,8 +507,72 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/authentication.py">
|
||||
<span class="label label-info">authentication.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/u">
|
||||
<span class="label label-info">u</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/h">
|
||||
<span class="label label-info">h</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/c">
|
||||
<span class="label label-info">c</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -423,8 +423,60 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/negotiation.py">
|
||||
<span class="label label-info">negotiation.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/g">
|
||||
<span class="label label-info">g</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -477,8 +477,56 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/exceptions.py">
|
||||
<span class="label label-info">exceptions.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/x">
|
||||
<span class="label label-info">x</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/c">
|
||||
<span class="label label-info">c</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -613,8 +613,40 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/fields.py">
|
||||
<span class="label label-info">fields.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/f">
|
||||
<span class="label label-info">f</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/l">
|
||||
<span class="label label-info">l</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/d">
|
||||
<span class="label label-info">d</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
@ -817,7 +849,7 @@ color_channel = serializers.ChoiceField(
|
|||
<h4 id="datetimefield-format-strings"><a class="toclink" href="#datetimefield-format-strings"><code>DateTimeField</code> format strings.</a></h4>
|
||||
<p>Format strings may either be <a href="https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior">Python strftime formats</a> which explicitly specify the format, or the special string <code>'iso-8601'</code>, which indicates that <a href="https://www.w3.org/TR/NOTE-datetime">ISO 8601</a> style datetimes should be used. (eg <code>'2013-01-29T12:34:56.000000Z'</code>)</p>
|
||||
<p>When a value of <code>None</code> is used for the format <code>datetime</code> objects will be returned by <code>to_representation</code> and the final output representation will determined by the renderer class.</p>
|
||||
<h4 id="auto_now-and-auto_now_add-model-fields"><code>auto_now_add</code> model fields.<a class="toclink" href="#auto_now-and-auto_now_add-model-fields"><code>auto_now</code> and </a></h4>
|
||||
<h4 id="auto_now-and-auto_now_add-model-fields"><a class="toclink" href="#auto_now-and-auto_now_add-model-fields"><code>auto_now</code> and <code>auto_now_add</code> model fields.</a></h4>
|
||||
<p>When using <code>ModelSerializer</code> or <code>HyperlinkedModelSerializer</code>, note that any model fields with <code>auto_now=True</code> or <code>auto_now_add=True</code> will use serializer fields that are <code>read_only=True</code> by default.</p>
|
||||
<p>If you want to override this behavior, you'll need to declare the <code>DateTimeField</code> explicitly on the serializer. For example:</p>
|
||||
<pre><code>class CommentSerializer(serializers.ModelSerializer):
|
||||
|
|
|
@ -497,8 +497,44 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/filters.py">
|
||||
<span class="label label-info">filters.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/f">
|
||||
<span class="label label-info">f</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/l">
|
||||
<span class="label label-info">l</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -417,8 +417,60 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/urlpatterns.py">
|
||||
<span class="label label-info">urlpatterns.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/u">
|
||||
<span class="label label-info">u</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/l">
|
||||
<span class="label label-info">l</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -521,12 +521,88 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/mixins.py">
|
||||
<span class="label label-info">mixins.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/m">
|
||||
<span class="label label-info">m</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/generics.py">
|
||||
<span class="label label-info">generics.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/x">
|
||||
<span class="label label-info">x</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/ ">
|
||||
<span class="label label-info"> </span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/g">
|
||||
<span class="label label-info">g</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/c">
|
||||
<span class="label label-info">c</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -433,8 +433,48 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/metadata.py">
|
||||
<span class="label label-info">metadata.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/m">
|
||||
<span class="label label-info">m</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/d">
|
||||
<span class="label label-info">d</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -477,8 +477,56 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/pagination.py">
|
||||
<span class="label label-info">pagination.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/g">
|
||||
<span class="label label-info">g</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -479,8 +479,44 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/parsers.py">
|
||||
<span class="label label-info">parsers.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -491,8 +491,60 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/permissions.py">
|
||||
<span class="label label-info">permissions.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/m">
|
||||
<span class="label label-info">m</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -513,8 +513,52 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/relations.py">
|
||||
<span class="label label-info">relations.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/l">
|
||||
<span class="label label-info">l</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -541,8 +541,52 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/renderers.py">
|
||||
<span class="label label-info">renderers.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/d">
|
||||
<span class="label label-info">d</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -479,8 +479,44 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/request.py">
|
||||
<span class="label label-info">request.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/q">
|
||||
<span class="label label-info">q</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/u">
|
||||
<span class="label label-info">u</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -459,8 +459,48 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/response.py">
|
||||
<span class="label label-info">response.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -413,8 +413,44 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/reverse.py">
|
||||
<span class="label label-info">reverse.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/v">
|
||||
<span class="label label-info">v</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -459,8 +459,44 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/routers.py">
|
||||
<span class="label label-info">routers.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/u">
|
||||
<span class="label label-info">u</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -507,8 +507,44 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/schemas.py">
|
||||
<span class="label label-info">schemas.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/c">
|
||||
<span class="label label-info">c</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/h">
|
||||
<span class="label label-info">h</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/m">
|
||||
<span class="label label-info">m</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -617,8 +617,60 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/serializers.py">
|
||||
<span class="label label-info">serializers.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/l">
|
||||
<span class="label label-info">l</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/z">
|
||||
<span class="label label-info">z</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
@ -1484,7 +1536,7 @@ class MySerializer(MyBaseSerializer):
|
|||
<h1 id="third-party-packages"><a class="toclink" href="#third-party-packages">Third party packages</a></h1>
|
||||
<p>The following third party packages are also available.</p>
|
||||
<h2 id="django-rest-marshmallow"><a class="toclink" href="#django-rest-marshmallow">Django REST marshmallow</a></h2>
|
||||
<p>The <a href="https://tomchristie.github.io/django-rest-marshmallow/">django-rest-marshmallow</a> package provides an alternative implementation for serializers, using the python <a href="https://marshmallow.readthedocs.io/en/latest/">marshmallow</a> library. It exposes the same API as the REST framework serializers, and can be used as a drop-in replacement in some use-cases.</p>
|
||||
<p>The <a href="https://marshmallow-code.github.io/django-rest-marshmallow/">django-rest-marshmallow</a> package provides an alternative implementation for serializers, using the python <a href="https://marshmallow.readthedocs.io/en/latest/">marshmallow</a> library. It exposes the same API as the REST framework serializers, and can be used as a drop-in replacement in some use-cases.</p>
|
||||
<h2 id="serpy"><a class="toclink" href="#serpy">Serpy</a></h2>
|
||||
<p>The <a href="https://github.com/clarkduvall/serpy">serpy</a> package is an alternative implementation for serializers that is built for speed. <a href="https://github.com/clarkduvall/serpy">Serpy</a> serializes complex datatypes to simple native types. The native types can be easily converted to JSON or any other format needed.</p>
|
||||
<h2 id="mongoenginemodelserializer"><a class="toclink" href="#mongoenginemodelserializer">MongoengineModelSerializer</a></h2>
|
||||
|
|
|
@ -463,8 +463,48 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/settings.py">
|
||||
<span class="label label-info">settings.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/g">
|
||||
<span class="label label-info">g</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
@ -490,7 +530,7 @@
|
|||
you should use the <code>api_settings</code> object. For example.</p>
|
||||
<pre><code>from rest_framework.settings import api_settings
|
||||
|
||||
print api_settings.DEFAULT_AUTHENTICATION_CLASSES
|
||||
print(api_settings.DEFAULT_AUTHENTICATION_CLASSES)
|
||||
</code></pre>
|
||||
<p>The <code>api_settings</code> object will check for any user-defined settings, and otherwise fall back to the default values. Any setting that uses string import paths to refer to a class will automatically import and return the referenced class, instead of the string literal.</p>
|
||||
<hr />
|
||||
|
|
|
@ -429,8 +429,40 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/status.py">
|
||||
<span class="label label-info">status.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/u">
|
||||
<span class="label label-info">u</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -521,8 +521,32 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/test.py">
|
||||
<span class="label label-info">test.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -449,8 +449,56 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/throttling.py">
|
||||
<span class="label label-info">throttling.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/h">
|
||||
<span class="label label-info">h</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/l">
|
||||
<span class="label label-info">l</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/g">
|
||||
<span class="label label-info">g</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -475,8 +475,56 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/validators.py">
|
||||
<span class="label label-info">validators.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/v">
|
||||
<span class="label label-info">v</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/l">
|
||||
<span class="label label-info">l</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/d">
|
||||
<span class="label label-info">d</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -449,8 +449,56 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/versioning.py">
|
||||
<span class="label label-info">versioning.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/v">
|
||||
<span class="label label-info">v</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/n">
|
||||
<span class="label label-info">n</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/g">
|
||||
<span class="label label-info">g</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -439,12 +439,92 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/decorators.py">
|
||||
<span class="label label-info">decorators.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/d">
|
||||
<span class="label label-info">d</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/views.py">
|
||||
<span class="label label-info">views.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/c">
|
||||
<span class="label label-info">c</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/a">
|
||||
<span class="label label-info">a</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/o">
|
||||
<span class="label label-info">o</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/r">
|
||||
<span class="label label-info">r</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/ ">
|
||||
<span class="label label-info"> </span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/v">
|
||||
<span class="label label-info">v</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/w">
|
||||
<span class="label label-info">w</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
|
@ -457,8 +457,48 @@
|
|||
|
||||
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/viewsets.py">
|
||||
<span class="label label-info">viewsets.py</span>
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/v">
|
||||
<span class="label label-info">v</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/i">
|
||||
<span class="label label-info">i</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/w">
|
||||
<span class="label label-info">w</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/e">
|
||||
<span class="label label-info">e</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/t">
|
||||
<span class="label label-info">t</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/s">
|
||||
<span class="label label-info">s</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/.">
|
||||
<span class="label label-info">.</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/p">
|
||||
<span class="label label-info">p</span>
|
||||
</a>
|
||||
|
||||
<a class="github" href="https://github.com/encode/django-rest-framework/tree/master/rest_framework/y">
|
||||
<span class="label label-info">y</span>
|
||||
</a>
|
||||
|
||||
|
||||
|
|
0
css/bootstrap-responsive.css
vendored
Executable file → Normal file
0
css/bootstrap-responsive.css
vendored
Executable file → Normal file
0
css/bootstrap.css
vendored
Executable file → Normal file
0
css/bootstrap.css
vendored
Executable file → Normal file
BIN
img/premium/cadre-readme.png
Normal file
BIN
img/premium/cadre-readme.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
|
@ -544,11 +544,12 @@ continued development by <strong><a href="topics/funding/">signing up for a paid
|
|||
<li><a href="https://getstream.io/try-the-api/?utm_source=drf&utm_medium=banner&utm_campaign=drf" style="background-image: url(https://fund-rest-framework.s3.amazonaws.com/stream-130.png)">Stream</a></li>
|
||||
<li><a href="https://hello.machinalis.co.uk/" style="background-image: url(https://fund-rest-framework.s3.amazonaws.com/Machinalis130.png)">Machinalis</a></li>
|
||||
<li><a href="https://rollbar.com" style="background-image: url(https://fund-rest-framework.s3.amazonaws.com/rollbar2.png)">Rollbar</a></li>
|
||||
<li><a href="https://cadre.com" style="background-image: url(https://fund-rest-framework.s3.amazonaws.com/cadre.png)">Cadre</a></li>
|
||||
</ul>
|
||||
|
||||
<div style="clear: both; padding-bottom: 20px;"></div>
|
||||
|
||||
<p><em>Many thanks to all our <a href="https://fund.django-rest-framework.org/topics/funding/#our-sponsors">wonderful sponsors</a>, and in particular to our premium backers, <a href="http://jobs.rover.com/">Rover</a>, <a href="https://getsentry.com/welcome/">Sentry</a>, <a href="https://getstream.io/?utm_source=drf&utm_medium=banner&utm_campaign=drf">Stream</a>, <a href="https://hello.machinalis.co.uk/">Machinalis</a>, and <a href="https://rollbar.com">Rollbar</a>.</em></p>
|
||||
<p><em>Many thanks to all our <a href="https://fund.django-rest-framework.org/topics/funding/#our-sponsors">wonderful sponsors</a>, and in particular to our premium backers, <a href="http://jobs.rover.com/">Rover</a>, <a href="https://getsentry.com/welcome/">Sentry</a>, <a href="https://getstream.io/?utm_source=drf&utm_medium=banner&utm_campaign=drf">Stream</a>, <a href="https://hello.machinalis.co.uk/">Machinalis</a>, <a href="https://rollbar.com">Rollbar</a>, and <a href="https://cadre.com">Cadre</a>.</em></p>
|
||||
<hr />
|
||||
<h2 id="requirements"><a class="toclink" href="#requirements">Requirements</a></h2>
|
||||
<p>REST framework requires the following:</p>
|
||||
|
|
0
js/bootstrap-2.1.1-min.js
vendored
Executable file → Normal file
0
js/bootstrap-2.1.1-min.js
vendored
Executable file → Normal file
|
@ -1,8 +1,12 @@
|
|||
require.config({
|
||||
baseUrl: base_url + "/search/"
|
||||
});
|
||||
|
||||
require([
|
||||
base_url + '/mkdocs/js/mustache.min.js',
|
||||
base_url + '/mkdocs/js/lunr.min.js',
|
||||
'mustache.min',
|
||||
'lunr.min',
|
||||
'text!search-results-template.mustache',
|
||||
'text!../search_index.json',
|
||||
'text!search_index.json',
|
||||
], function (Mustache, lunr, results_template, data) {
|
||||
"use strict";
|
||||
|
||||
|
@ -83,6 +87,6 @@ require([
|
|||
search();
|
||||
}
|
||||
|
||||
search_input.addEventListener("keyup", search);
|
||||
if (search_input){search_input.addEventListener("keyup", search);}
|
||||
|
||||
});
|
File diff suppressed because one or more lines are too long
124
sitemap.xml
124
sitemap.xml
|
@ -4,7 +4,7 @@
|
|||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
|
@ -13,49 +13,49 @@
|
|||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//tutorial/quickstart/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//tutorial/1-serialization/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//tutorial/2-requests-and-responses/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//tutorial/3-class-based-views/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//tutorial/4-authentication-and-permissions/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//tutorial/5-relationships-and-hyperlinked-apis/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//tutorial/6-viewsets-and-routers/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//tutorial/7-schemas-and-client-libraries/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
|
@ -65,163 +65,163 @@
|
|||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/requests/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/responses/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/views/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/generic-views/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/viewsets/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/routers/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/parsers/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/renderers/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/serializers/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/fields/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/relations/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/validators/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/authentication/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/permissions/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/throttling/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/filtering/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/pagination/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/versioning/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/content-negotiation/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/metadata/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/schemas/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/format-suffixes/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/reverse/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/exceptions/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/status-codes/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/testing/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//api-guide/settings/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
|
@ -231,157 +231,157 @@
|
|||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/documenting-your-api/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/api-clients/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/internationalization/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/ajax-csrf-cors/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/html-and-forms/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/browser-enhancements/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/browsable-api/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/rest-hypermedia-hateoas/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/third-party-packages/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/tutorials-and-resources/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/contributing/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/project-management/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/jobs/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.0-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.1-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.2-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.3-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.4-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.5-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.6-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.7-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/3.8-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/kickstarter-announcement/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/mozilla-grant/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/funding/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
<url>
|
||||
<loc>http://www.django-rest-framework.org//topics/release-notes/</loc>
|
||||
<lastmod>2018-04-06</lastmod>
|
||||
<lastmod>2018-04-18</lastmod>
|
||||
<changefreq>daily</changefreq>
|
||||
</url>
|
||||
|
||||
|
|
|
@ -474,7 +474,7 @@
|
|||
<hr />
|
||||
<p><em>Below is an in-depth guide to the API changes and migration notes for 3.0.</em></p>
|
||||
<h2 id="request-objects"><a class="toclink" href="#request-objects">Request objects</a></h2>
|
||||
<h4 id="the-data-and-query_params-properties"><code>.query_params</code> properties.<a class="toclink" href="#the-data-and-query_params-properties">The <code>.data</code> and </a></h4>
|
||||
<h4 id="the-data-and-query_params-properties"><a class="toclink" href="#the-data-and-query_params-properties">The <code>.data</code> and <code>.query_params</code> properties.</a></h4>
|
||||
<p>The usage of <code>request.DATA</code> and <code>request.FILES</code> is now pending deprecation in favor of a single <code>request.data</code> attribute that contains <em>all</em> the parsed data.</p>
|
||||
<p>Having separate attributes is reasonable for web applications that only ever parse url-encoded or multipart requests, but makes less sense for the general-purpose request parsing that REST framework supports.</p>
|
||||
<p>You may now pass all the request data to a serializer class in a single argument:</p>
|
||||
|
@ -506,7 +506,7 @@ ExampleSerializer(data=request.DATA, files=request.FILES)
|
|||
<li>Calling <code>serializer.save()</code> then saves and returns the new object instance.</li>
|
||||
</ol>
|
||||
<p>The resulting API changes are further detailed below.</p>
|
||||
<h4 id="the-create-and-update-methods"><code>.update()</code> methods.<a class="toclink" href="#the-create-and-update-methods">The <code>.create()</code> and </a></h4>
|
||||
<h4 id="the-create-and-update-methods"><a class="toclink" href="#the-create-and-update-methods">The <code>.create()</code> and <code>.update()</code> methods.</a></h4>
|
||||
<p>The <code>.restore_object()</code> method is now removed, and we instead have two separate methods, <code>.create()</code> and <code>.update()</code>. These methods work slightly different to the previous <code>.restore_object()</code>.</p>
|
||||
<p>When using the <code>.create()</code> and <code>.update()</code> methods you should both create <em>and save</em> the object instance. This is in contrast to the previous <code>.restore_object()</code> behavior that would instantiate the object but not save it.</p>
|
||||
<p>These methods also replace the optional <code>.save_object()</code> method, which no longer exists.</p>
|
||||
|
@ -538,7 +538,7 @@ def create(self, validated_data):
|
|||
return Snippet.objects.create(**validated_data)
|
||||
</code></pre>
|
||||
<p>Note that these methods should return the newly created object instance.</p>
|
||||
<h4 id="use-validated_data-instead-of-object"><code>.object</code>.<a class="toclink" href="#use-validated_data-instead-of-object">Use <code>.validated_data</code> instead of </a></h4>
|
||||
<h4 id="use-validated_data-instead-of-object"><a class="toclink" href="#use-validated_data-instead-of-object">Use <code>.validated_data</code> instead of <code>.object</code>.</a></h4>
|
||||
<p>You must now use the <code>.validated_data</code> attribute if you need to inspect the data before saving, rather than using the <code>.object</code> attribute, which no longer exists.</p>
|
||||
<p>For example the following code <em>is no longer valid</em>:</p>
|
||||
<pre><code>if serializer.is_valid():
|
||||
|
@ -886,7 +886,7 @@ def all_high_scores(request):
|
|||
</code></pre>
|
||||
<hr />
|
||||
<h2 id="serializer-fields"><a class="toclink" href="#serializer-fields">Serializer fields</a></h2>
|
||||
<h4 id="the-field-and-readonly-field-classes"><code>ReadOnly</code> field classes.<a class="toclink" href="#the-field-and-readonly-field-classes">The <code>Field</code> and </a></h4>
|
||||
<h4 id="the-field-and-readonly-field-classes"><a class="toclink" href="#the-field-and-readonly-field-classes">The <code>Field</code> and <code>ReadOnly</code> field classes.</a></h4>
|
||||
<p>There are some minor tweaks to the field base classes.</p>
|
||||
<p>Previously we had these two base classes:</p>
|
||||
<ul>
|
||||
|
@ -898,7 +898,7 @@ def all_high_scores(request):
|
|||
<li><code>Field</code> is the base class for all fields. It does not include any default implementation for either serializing or deserializing data.</li>
|
||||
<li><code>ReadOnlyField</code> is a concrete implementation for read-only fields that simply returns the attribute value without modification.</li>
|
||||
</ul>
|
||||
<h4 id="the-required-allow_null-allow_blank-and-default-arguments"><code>allow_null</code>, <code>default</code> arguments.<a class="toclink" href="#the-required-allow_null-allow_blank-and-default-arguments">The <code>required</code>, <code>allow_blank</code> and </a></h4>
|
||||
<h4 id="the-required-allow_null-allow_blank-and-default-arguments"><a class="toclink" href="#the-required-allow_null-allow_blank-and-default-arguments">The <code>required</code>, <code>allow_null</code>, <code>allow_blank</code> and <code>default</code> arguments.</a></h4>
|
||||
<p>REST framework now has more explicit and clear control over validating empty values for fields.</p>
|
||||
<p>Previously the meaning of the <code>required=False</code> keyword argument was underspecified. In practice its use meant that a field could either be not included in the input, or it could be included, but be <code>None</code> or the empty string.</p>
|
||||
<p>We now have a better separation, with separate <code>required</code>, <code>allow_null</code> and <code>allow_blank</code> arguments.</p>
|
||||
|
@ -1008,7 +1008,7 @@ This removes some magic and makes it easier and more obvious to move between imp
|
|||
<p>The following usage will <em>now raise an error</em>:</p>
|
||||
<pre><code>email = serializers.EmailField(source='email')
|
||||
</code></pre>
|
||||
<h4 id="the-uniquevalidator-and-uniquetogethervalidator-classes"><code>UniqueTogetherValidator</code> classes.<a class="toclink" href="#the-uniquevalidator-and-uniquetogethervalidator-classes">The <code>UniqueValidator</code> and </a></h4>
|
||||
<h4 id="the-uniquevalidator-and-uniquetogethervalidator-classes"><a class="toclink" href="#the-uniquevalidator-and-uniquetogethervalidator-classes">The <code>UniqueValidator</code> and <code>UniqueTogetherValidator</code> classes.</a></h4>
|
||||
<p>REST framework now provides new validators that allow you to ensure field uniqueness, while still using a completely explicit <code>Serializer</code> class instead of using <code>ModelSerializer</code>.</p>
|
||||
<p>The <code>UniqueValidator</code> should be applied to a serializer field, and takes a single <code>queryset</code> argument.</p>
|
||||
<pre><code>from rest_framework import serializers
|
||||
|
|
|
@ -506,17 +506,17 @@ documentation generation and parameter annotation.</p>
|
|||
<tr>
|
||||
<td><a href="http://www.coreapi.org/specification/encoding/#core-json-encoding">Core JSON</a></td>
|
||||
<td>Schema generation & client support.</td>
|
||||
<td>Built-in support in <code>coreapi</code></td>
|
||||
<td>Built-in support in <code>coreapi</code>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://openapis.org/specification">Swagger / OpenAPI</a></td>
|
||||
<td>Schema generation & client support.</td>
|
||||
<td>The <code>openapi-codec</code>package.</td>
|
||||
<td>The <code>openapi-codec</code> package.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="http://json-schema.org/latest/json-schema-hypermedia.html">JSON Hyper-Schema</a></td>
|
||||
<td>Currently client support only.</td>
|
||||
<td>The <code>hyperschema-codec</code>package.</td>
|
||||
<td>The <code>hyperschema-codec</code> package.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="https://apiblueprint.org/">API Blueprint</a></td>
|
||||
|
|
|
@ -454,7 +454,7 @@ the foundations for future changes.</p>
|
|||
<p><em>We'd like to say thanks in particular our premium backers, <a href="http://jobs.rover.com/">Rover</a>, <a href="https://getsentry.com/welcome/">Sentry</a>, <a href="https://getstream.io/?utm_source=drf&utm_medium=banner&utm_campaign=drf">Stream</a>, <a href="https://hello.machinalis.co.uk/">Machinalis</a>, and <a href="https://rollbar.com">Rollbar</a>.</em></p>
|
||||
<hr />
|
||||
<h2 id="breaking-changes"><a class="toclink" href="#breaking-changes">Breaking Changes</a></h2>
|
||||
<h3 id="altered-the-behaviour-of-read_only-plus-default-on-field"><code>default</code> on Field.<a class="toclink" href="#altered-the-behaviour-of-read_only-plus-default-on-field">Altered the behaviour of <code>read_only</code> plus </a></h3>
|
||||
<h3 id="altered-the-behaviour-of-read_only-plus-default-on-field"><a class="toclink" href="#altered-the-behaviour-of-read_only-plus-default-on-field">Altered the behaviour of <code>read_only</code> plus <code>default</code> on Field.</a></h3>
|
||||
<p><a href="https://github.com/encode/django-rest-framework/issues/5886">#5886</a> <code>read_only</code> fields will now <strong>always</strong> be excluded from writable fields.</p>
|
||||
<p>Previously <code>read_only</code> fields when combined with a <code>default</code> value would use the <code>default</code> for create and update
|
||||
operations. This was counter-intuitive in some circumstances and led to difficulties supporting dotted <code>source</code>
|
||||
|
@ -464,10 +464,10 @@ the view:</p>
|
|||
<pre><code>def perform_create(self, serializer):
|
||||
serializer.save(owner=self.request.user)
|
||||
</code></pre>
|
||||
<p>Alternatively you may override <code>save()</code> or <code>create()</code> or <code>update()</code> on the serialiser as appropriate.</p>
|
||||
<p>Alternatively you may override <code>save()</code> or <code>create()</code> or <code>update()</code> on the serializer as appropriate.</p>
|
||||
<hr />
|
||||
<h2 id="deprecations"><a class="toclink" href="#deprecations">Deprecations</a></h2>
|
||||
<h3 id="action-decorator-replaces-list_route-and-detail_route"><code>list_route</code> and <a class="toclink" href="#action-decorator-replaces-list_route-and-detail_route"><code>action</code> decorator replaces <code>detail_route</code></a></h3>
|
||||
<h3 id="action-decorator-replaces-list_route-and-detail_route"><a class="toclink" href="#action-decorator-replaces-list_route-and-detail_route"><code>action</code> decorator replaces <code>list_route</code> and <code>detail_route</code></a></h3>
|
||||
<p><a href="https://github.com/encode/django-rest-framework/issues/5705">#5705</a> <code>list_route</code> and <code>detail_route</code> have been merge into a single <code>action</code> decorator. This improves viewset action introspection, and will allow extra actions to be displayed in the Browsable API in future versions.</p>
|
||||
<p>Both <code>list_route</code> and <code>detail_route</code> are now pending deprecation. They will be deprecated in 3.9 and removed entirely
|
||||
in 3.10.</p>
|
||||
|
|
|
@ -559,7 +559,8 @@ form.signup {
|
|||
<ul>
|
||||
<li>The <a href="http://www.django-rest-framework.org/topics/3.4-announcement/">3.4</a> and <a href="http://www.django-rest-framework.org/topics/3.5-announcement/">3.5</a> releases, including schema generation for both Swagger and RAML, a Python client library, a Command Line client, and addressing of a large number of outstanding issues.</li>
|
||||
<li>The <a href="http://www.django-rest-framework.org/topics/3.6-announcement/">3.6</a> release, including JavaScript client library, and API documentation, complete with auto-generated code samples.</li>
|
||||
<li>The recent <a href="http://www.django-rest-framework.org/topics/3.7-announcement/">3.7 release</a>, made possible due to our collaborative funding model, focuses on improvements to schema generation and the interactive API documentation.</li>
|
||||
<li>The <a href="http://www.django-rest-framework.org/topics/3.7-announcement/">3.7 release</a>, made possible due to our collaborative funding model, focuses on improvements to schema generation and the interactive API documentation.</li>
|
||||
<li>The recent <a href="http://www.django-rest-framework.org/topics/3.8-announcement/">3.8 release</a>.</li>
|
||||
<li>Tom Christie, the creator of Django REST framework, working on the project full-time.</li>
|
||||
<li>Around 80-90 issues and pull requests closed per month since Tom Christie started working on the project full-time.</li>
|
||||
<li>A community & operations manager position part-time for 4 months, helping mature the business and grow sponsorship.</li>
|
||||
|
@ -754,7 +755,7 @@ DRF is one of the core reasons why Django is top choice among web frameworks tod
|
|||
<p>For further enquires please contact <a href=mailto:funding@django-rest-framework.org>funding@django-rest-framework.org</a>.</p>
|
||||
<hr />
|
||||
<h2 id="accountability"><a class="toclink" href="#accountability">Accountability</a></h2>
|
||||
<p>In an effort to keep the project as transparent as possible, we are releasing <a href="http://www.encode.io/reports/february-2018">monthly progress reports</a> and regularly include financial reports and cost breakdowns.</p>
|
||||
<p>In an effort to keep the project as transparent as possible, we are releasing <a href="http://www.encode.io/reports/march-2018">monthly progress reports</a> and regularly include financial reports and cost breakdowns.</p>
|
||||
<!-- Begin MailChimp Signup Form -->
|
||||
|
||||
<p><link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
|
||||
|
|
|
@ -605,22 +605,22 @@ class ProfileDetail(APIView):
|
|||
</tr>
|
||||
<tr>
|
||||
<td>select.html</td>
|
||||
<td><code>ChoiceField</code>or relational field types</td>
|
||||
<td><code>ChoiceField</code> or relational field types</td>
|
||||
<td>hide_label</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>radio.html</td>
|
||||
<td><code>ChoiceField</code>or relational field types</td>
|
||||
<td><code>ChoiceField</code> or relational field types</td>
|
||||
<td>inline, hide_label</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>select_multiple.html</td>
|
||||
<td><code>MultipleChoiceField</code>or relational fields with <code>many=True</code></td>
|
||||
<td><code>MultipleChoiceField</code> or relational fields with <code>many=True</code></td>
|
||||
<td>hide_label</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>checkbox_multiple.html</td>
|
||||
<td><code>MultipleChoiceField</code>or relational fields with <code>many=True</code></td>
|
||||
<td><code>MultipleChoiceField</code> or relational fields with <code>many=True</code></td>
|
||||
<td>inline, hide_label</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -635,7 +635,7 @@ class ProfileDetail(APIView):
|
|||
</tr>
|
||||
<tr>
|
||||
<td>list_fieldset.html</td>
|
||||
<td><code>ListField</code>or nested serializer with <code>many=True</code></td>
|
||||
<td><code>ListField</code> or nested serializer with <code>many=True</code></td>
|
||||
<td>hide_label</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
|
|
@ -619,6 +619,7 @@ You probably want to also tag the version now:
|
|||
<li><a href="https://github.com/mrhwick/django-rest-framework-version-transforms">django-rest-framework-version-transforms</a> - Enables the use of delta transformations for versioning of DRF resource representations.</li>
|
||||
<li><a href="https://github.com/raphaelgyory/django-rest-messaging">django-rest-messaging</a>, <a href="https://github.com/raphaelgyory/django-rest-messaging-centrifugo">django-rest-messaging-centrifugo</a> and <a href="https://github.com/raphaelgyory/django-rest-messaging-js">django-rest-messaging-js</a> - A real-time pluggable messaging service using DRM.</li>
|
||||
<li><a href="https://github.com/dealertrack/djangorest-alchemy">djangorest-alchemy</a> - SQLAlchemy support for REST framework.</li>
|
||||
<li><a href="https://github.com/izimobil/django-rest-framework-datatables">djangorestframework-datatables</a> - Seamless integration between Django REST framework and <a href="https://datatables.net">Datatables</a>.</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user