mirror of
https://github.com/nanoy42/coope
synced 2024-11-25 12:53:11 +00:00
5503 lines
No EOL
359 KiB
HTML
5503 lines
No EOL
359 KiB
HTML
|
||
|
||
<!DOCTYPE html>
|
||
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
|
||
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
|
||
<head>
|
||
<meta charset="utf-8">
|
||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
||
<title>Models documentation — CoopeV3 3.4.0 documentation</title>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<script type="text/javascript" src="../_static/js/modernizr.min.js"></script>
|
||
|
||
|
||
<script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
|
||
<script type="text/javascript" src="../_static/jquery.js"></script>
|
||
<script type="text/javascript" src="../_static/underscore.js"></script>
|
||
<script type="text/javascript" src="../_static/doctools.js"></script>
|
||
<script type="text/javascript" src="../_static/language_data.js"></script>
|
||
|
||
<script type="text/javascript" src="../_static/js/theme.js"></script>
|
||
|
||
|
||
|
||
|
||
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
|
||
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
||
<link rel="index" title="Index" href="../genindex.html" />
|
||
<link rel="search" title="Search" href="../search.html" />
|
||
<link rel="next" title="Admin documentation" href="admin.html" />
|
||
<link rel="prev" title="Views documentation" href="views.html" />
|
||
</head>
|
||
|
||
<body class="wy-body-for-nav">
|
||
|
||
|
||
<div class="wy-grid-for-nav">
|
||
|
||
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
||
<div class="wy-side-scroll">
|
||
<div class="wy-side-nav-search" >
|
||
|
||
|
||
|
||
<a href="../index.html" class="icon icon-home"> CoopeV3
|
||
|
||
|
||
|
||
</a>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div role="search">
|
||
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
||
<input type="text" name="q" placeholder="Search docs" />
|
||
<input type="hidden" name="check_keywords" value="yes" />
|
||
<input type="hidden" name="area" value="default" />
|
||
</form>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<p class="caption"><span class="caption-text">Contents:</span></p>
|
||
<ul class="current">
|
||
<li class="toctree-l1"><a class="reference internal" href="views.html">Views documentation</a></li>
|
||
<li class="toctree-l1 current"><a class="current reference internal" href="#">Models documentation</a><ul>
|
||
<li class="toctree-l2"><a class="reference internal" href="#module-gestion.models">Gestion app models</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#module-users.models">Users app models</a></li>
|
||
<li class="toctree-l2"><a class="reference internal" href="#module-preferences.models">Preferences app models</a></li>
|
||
</ul>
|
||
</li>
|
||
<li class="toctree-l1"><a class="reference internal" href="admin.html">Admin documentation</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="forms.html">Forms documentation</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="utils.html">Utils documentation</a></li>
|
||
<li class="toctree-l1"><a class="reference internal" href="django_tex.html">Django_tex documentation</a></li>
|
||
</ul>
|
||
|
||
|
||
|
||
</div>
|
||
</div>
|
||
</nav>
|
||
|
||
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
||
|
||
|
||
<nav class="wy-nav-top" aria-label="top navigation">
|
||
|
||
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
||
<a href="../index.html">CoopeV3</a>
|
||
|
||
</nav>
|
||
|
||
|
||
<div class="wy-nav-content">
|
||
|
||
<div class="rst-content">
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
<div role="navigation" aria-label="breadcrumbs navigation">
|
||
|
||
<ul class="wy-breadcrumbs">
|
||
|
||
<li><a href="../index.html">Docs</a> »</li>
|
||
|
||
<li>Models documentation</li>
|
||
|
||
|
||
<li class="wy-breadcrumbs-aside">
|
||
|
||
|
||
<a href="../_sources/modules/models.rst.txt" rel="nofollow"> View page source</a>
|
||
|
||
|
||
</li>
|
||
|
||
</ul>
|
||
|
||
|
||
<hr/>
|
||
</div>
|
||
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
||
<div itemprop="articleBody">
|
||
|
||
<div class="section" id="models-documentation">
|
||
<h1>Models documentation<a class="headerlink" href="#models-documentation" title="Permalink to this headline">¶</a></h1>
|
||
<div class="section" id="module-gestion.models">
|
||
<span id="gestion-app-models"></span><h2>Gestion app models<a class="headerlink" href="#module-gestion.models" title="Permalink to this headline">¶</a></h2>
|
||
<dl class="class">
|
||
<dt id="gestion.models.Consumption">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">Consumption</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Consumption" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores total consumptions.</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Consumption.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.Consumption.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Consumption.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.Consumption.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Consumption.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.Consumption.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Client (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Consumption.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.Consumption.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Consumption.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.Consumption.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Consumption.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.Consumption.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Consumption.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.Consumption.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Consumption.product">
|
||
<code class="descname">product</code><a class="headerlink" href="#gestion.models.Consumption.product" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A <a class="reference internal" href="#gestion.models.Product" title="gestion.models.Product"><code class="xref py py-class docutils literal notranslate"><span class="pre">gestion.models.Product</span></code></a> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Consumption.product_id">
|
||
<code class="descname">product_id</code><a class="headerlink" href="#gestion.models.Consumption.product_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Consumption.quantity">
|
||
<code class="descname">quantity</code><a class="headerlink" href="#gestion.models.Consumption.quantity" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The total number of <a class="reference internal" href="#gestion.models.Consumption.product" title="gestion.models.Consumption.product"><code class="xref py py-attr docutils literal notranslate"><span class="pre">gestion.models.Consumption.product</span></code></a> consumed by the <code class="xref py py-attr docutils literal notranslate"><span class="pre">gestion.models.Consumption.consumer</span></code>.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Consumption.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Consumption.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.ConsumptionHistory">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">ConsumptionHistory</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.ConsumptionHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores consumption history related to Product</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.ConsumptionHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.ConsumptionHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Price of the purchase.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Coopeman (:class:django.contrib.auth.models.User`) who collected the money.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Client (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.date">
|
||
<code class="descname">date</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Date of the purhcase.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.ConsumptionHistory.get_next_by_date">
|
||
<code class="descname">get_next_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.ConsumptionHistory.get_next_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.ConsumptionHistory.get_previous_by_date">
|
||
<code class="descname">get_previous_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.ConsumptionHistory.get_previous_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.ConsumptionHistory.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.ConsumptionHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.paymentMethod">
|
||
<code class="descname">paymentMethod</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.paymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p><a class="reference internal" href="#preferences.models.PaymentMethod" title="preferences.models.PaymentMethod"><code class="xref py py-class docutils literal notranslate"><span class="pre">Payment</span> <span class="pre">Method</span></code></a> of the product purchased.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.paymentMethod_id">
|
||
<code class="descname">paymentMethod_id</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.paymentMethod_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.product">
|
||
<code class="descname">product</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.product" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p><code class="xref py py-class docutils literal notranslate"><span class="pre">gestion.models.product</span></code> purchased.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.product_id">
|
||
<code class="descname">product_id</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.product_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.ConsumptionHistory.quantity">
|
||
<code class="descname">quantity</code><a class="headerlink" href="#gestion.models.ConsumptionHistory.quantity" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Quantity of <a class="reference internal" href="#gestion.models.ConsumptionHistory.product" title="gestion.models.ConsumptionHistory.product"><code class="xref py py-attr docutils literal notranslate"><span class="pre">gestion.models.ConsumptionHistory.product</span></code></a> taken.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.ConsumptionHistory.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.ConsumptionHistory.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalConsumption">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalConsumption</code><span class="sig-paren">(</span><em>id</em>, <em>quantity</em>, <em>customer</em>, <em>product</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumption" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalConsumption.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalConsumption.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumption.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumption.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumption.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumption.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumption.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumption.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.Consumption" title="gestion.models.Consumption"><code class="xref py py-class docutils literal notranslate"><span class="pre">Consumption</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalConsumption.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.product">
|
||
<code class="descname">product</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.product" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.product_id">
|
||
<code class="descname">product_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.product_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumption.quantity">
|
||
<code class="descname">quantity</code><a class="headerlink" href="#gestion.models.HistoricalConsumption.quantity" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumption.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumption.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalConsumptionHistory</code><span class="sig-paren">(</span><em>id</em>, <em>quantity</em>, <em>date</em>, <em>amount</em>, <em>customer</em>, <em>paymentMethod</em>, <em>product</em>, <em>coopeman</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.date">
|
||
<code class="descname">date</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.get_next_by_date">
|
||
<code class="descname">get_next_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.get_next_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.get_previous_by_date">
|
||
<code class="descname">get_previous_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.get_previous_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.ConsumptionHistory" title="gestion.models.ConsumptionHistory"><code class="xref py py-class docutils literal notranslate"><span class="pre">ConsumptionHistory</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.paymentMethod">
|
||
<code class="descname">paymentMethod</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.paymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.paymentMethod_id">
|
||
<code class="descname">paymentMethod_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.paymentMethod_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.product">
|
||
<code class="descname">product</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.product" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.product_id">
|
||
<code class="descname">product_id</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.product_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.quantity">
|
||
<code class="descname">quantity</code><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.quantity" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalConsumptionHistory.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalConsumptionHistory.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalKeg">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalKeg</code><span class="sig-paren">(</span><em>id</em>, <em>name</em>, <em>stockHold</em>, <em>barcode</em>, <em>amount</em>, <em>capacity</em>, <em>is_active</em>, <em>pinte</em>, <em>demi</em>, <em>galopin</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKeg" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalKeg.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalKeg.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalKeg.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalKeg.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.HistoricalKeg.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.barcode">
|
||
<code class="descname">barcode</code><a class="headerlink" href="#gestion.models.HistoricalKeg.barcode" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.capacity">
|
||
<code class="descname">capacity</code><a class="headerlink" href="#gestion.models.HistoricalKeg.capacity" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.demi">
|
||
<code class="descname">demi</code><a class="headerlink" href="#gestion.models.HistoricalKeg.demi" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.demi_id">
|
||
<code class="descname">demi_id</code><a class="headerlink" href="#gestion.models.HistoricalKeg.demi_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.galopin">
|
||
<code class="descname">galopin</code><a class="headerlink" href="#gestion.models.HistoricalKeg.galopin" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.galopin_id">
|
||
<code class="descname">galopin_id</code><a class="headerlink" href="#gestion.models.HistoricalKeg.galopin_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKeg.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKeg.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKeg.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKeg.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKeg.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKeg.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalKeg.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalKeg.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalKeg.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalKeg.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalKeg.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalKeg.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalKeg.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalKeg.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalKeg.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalKeg.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.Keg" title="gestion.models.Keg"><code class="xref py py-class docutils literal notranslate"><span class="pre">Keg</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#gestion.models.HistoricalKeg.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#gestion.models.HistoricalKeg.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalKeg.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalKeg.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.pinte">
|
||
<code class="descname">pinte</code><a class="headerlink" href="#gestion.models.HistoricalKeg.pinte" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.pinte_id">
|
||
<code class="descname">pinte_id</code><a class="headerlink" href="#gestion.models.HistoricalKeg.pinte_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalKeg.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKeg.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKeg.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKeg.stockHold">
|
||
<code class="descname">stockHold</code><a class="headerlink" href="#gestion.models.HistoricalKeg.stockHold" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalKegHistory">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalKegHistory</code><span class="sig-paren">(</span><em>id</em>, <em>openingDate</em>, <em>quantitySold</em>, <em>amountSold</em>, <em>closingDate</em>, <em>isCurrentKegHistory</em>, <em>keg</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKegHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalKegHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalKegHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.amountSold">
|
||
<code class="descname">amountSold</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.amountSold" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.closingDate">
|
||
<code class="descname">closingDate</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.closingDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKegHistory.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKegHistory.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKegHistory.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKegHistory.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKegHistory.get_next_by_openingDate">
|
||
<code class="descname">get_next_by_openingDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: openingDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKegHistory.get_next_by_openingDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKegHistory.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKegHistory.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKegHistory.get_previous_by_openingDate">
|
||
<code class="descname">get_previous_by_openingDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: openingDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKegHistory.get_previous_by_openingDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.KegHistory" title="gestion.models.KegHistory"><code class="xref py py-class docutils literal notranslate"><span class="pre">KegHistory</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.isCurrentKegHistory">
|
||
<code class="descname">isCurrentKegHistory</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.isCurrentKegHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.keg">
|
||
<code class="descname">keg</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.keg" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.keg_id">
|
||
<code class="descname">keg_id</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.keg_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalKegHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.openingDate">
|
||
<code class="descname">openingDate</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.openingDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalKegHistory.quantitySold">
|
||
<code class="descname">quantitySold</code><a class="headerlink" href="#gestion.models.HistoricalKegHistory.quantitySold" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalKegHistory.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalKegHistory.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalMenu">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalMenu</code><span class="sig-paren">(</span><em>id</em>, <em>name</em>, <em>amount</em>, <em>barcode</em>, <em>is_active</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenu" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalMenu.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalMenu.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalMenu.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalMenu.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.HistoricalMenu.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.barcode">
|
||
<code class="descname">barcode</code><a class="headerlink" href="#gestion.models.HistoricalMenu.barcode" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenu.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenu.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenu.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenu.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenu.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenu.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalMenu.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalMenu.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalMenu.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalMenu.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalMenu.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalMenu.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalMenu.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalMenu.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalMenu.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalMenu.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.Menu" title="gestion.models.Menu"><code class="xref py py-class docutils literal notranslate"><span class="pre">Menu</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#gestion.models.HistoricalMenu.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#gestion.models.HistoricalMenu.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalMenu.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalMenu.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenu.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalMenu.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenu.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenu.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalMenuHistory">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalMenuHistory</code><span class="sig-paren">(</span><em>id</em>, <em>quantity</em>, <em>date</em>, <em>amount</em>, <em>customer</em>, <em>paymentMethod</em>, <em>menu</em>, <em>coopeman</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenuHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalMenuHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalMenuHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.date">
|
||
<code class="descname">date</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenuHistory.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenuHistory.get_next_by_date">
|
||
<code class="descname">get_next_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.get_next_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenuHistory.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenuHistory.get_previous_by_date">
|
||
<code class="descname">get_previous_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.get_previous_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenuHistory.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.MenuHistory" title="gestion.models.MenuHistory"><code class="xref py py-class docutils literal notranslate"><span class="pre">MenuHistory</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.menu">
|
||
<code class="descname">menu</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.menu" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.menu_id">
|
||
<code class="descname">menu_id</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.menu_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.paymentMethod">
|
||
<code class="descname">paymentMethod</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.paymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.paymentMethod_id">
|
||
<code class="descname">paymentMethod_id</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.paymentMethod_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalMenuHistory.quantity">
|
||
<code class="descname">quantity</code><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.quantity" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalMenuHistory.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalMenuHistory.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalPinte">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalPinte</code><span class="sig-paren">(</span><em>id</em>, <em>last_update_date</em>, <em>current_owner</em>, <em>previous_owner</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalPinte" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalPinte.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalPinte.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalPinte.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalPinte.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.current_owner">
|
||
<code class="descname">current_owner</code><a class="headerlink" href="#gestion.models.HistoricalPinte.current_owner" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.current_owner_id">
|
||
<code class="descname">current_owner_id</code><a class="headerlink" href="#gestion.models.HistoricalPinte.current_owner_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalPinte.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalPinte.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalPinte.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalPinte.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalPinte.get_next_by_last_update_date">
|
||
<code class="descname">get_next_by_last_update_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: last_update_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalPinte.get_next_by_last_update_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalPinte.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalPinte.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalPinte.get_previous_by_last_update_date">
|
||
<code class="descname">get_previous_by_last_update_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: last_update_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalPinte.get_previous_by_last_update_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalPinte.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalPinte.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalPinte.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalPinte.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalPinte.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalPinte.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalPinte.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalPinte.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalPinte.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalPinte.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.Pinte" title="gestion.models.Pinte"><code class="xref py py-class docutils literal notranslate"><span class="pre">Pinte</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.last_update_date">
|
||
<code class="descname">last_update_date</code><a class="headerlink" href="#gestion.models.HistoricalPinte.last_update_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalPinte.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalPinte.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalPinte.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.previous_owner">
|
||
<code class="descname">previous_owner</code><a class="headerlink" href="#gestion.models.HistoricalPinte.previous_owner" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalPinte.previous_owner_id">
|
||
<code class="descname">previous_owner_id</code><a class="headerlink" href="#gestion.models.HistoricalPinte.previous_owner_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalPinte.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalPinte.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalProduct">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalProduct</code><span class="sig-paren">(</span><em>id</em>, <em>name</em>, <em>amount</em>, <em>stockHold</em>, <em>stockBar</em>, <em>barcode</em>, <em>category</em>, <em>needQuantityButton</em>, <em>is_active</em>, <em>volume</em>, <em>deg</em>, <em>adherentRequired</em>, <em>showingMultiplier</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalProduct" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalProduct.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalProduct.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalProduct.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalProduct.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.adherentRequired">
|
||
<code class="descname">adherentRequired</code><a class="headerlink" href="#gestion.models.HistoricalProduct.adherentRequired" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.HistoricalProduct.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.barcode">
|
||
<code class="descname">barcode</code><a class="headerlink" href="#gestion.models.HistoricalProduct.barcode" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.category">
|
||
<code class="descname">category</code><a class="headerlink" href="#gestion.models.HistoricalProduct.category" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.deg">
|
||
<code class="descname">deg</code><a class="headerlink" href="#gestion.models.HistoricalProduct.deg" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalProduct.get_category_display">
|
||
<code class="descname">get_category_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: category></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalProduct.get_category_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalProduct.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalProduct.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalProduct.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalProduct.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalProduct.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalProduct.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalProduct.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalProduct.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalProduct.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalProduct.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalProduct.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalProduct.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalProduct.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalProduct.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalProduct.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalProduct.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.Product" title="gestion.models.Product"><code class="xref py py-class docutils literal notranslate"><span class="pre">Product</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#gestion.models.HistoricalProduct.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#gestion.models.HistoricalProduct.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.needQuantityButton">
|
||
<code class="descname">needQuantityButton</code><a class="headerlink" href="#gestion.models.HistoricalProduct.needQuantityButton" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalProduct.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalProduct.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalProduct.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalProduct.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalProduct.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.showingMultiplier">
|
||
<code class="descname">showingMultiplier</code><a class="headerlink" href="#gestion.models.HistoricalProduct.showingMultiplier" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.stockBar">
|
||
<code class="descname">stockBar</code><a class="headerlink" href="#gestion.models.HistoricalProduct.stockBar" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.stockHold">
|
||
<code class="descname">stockHold</code><a class="headerlink" href="#gestion.models.HistoricalProduct.stockHold" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalProduct.volume">
|
||
<code class="descname">volume</code><a class="headerlink" href="#gestion.models.HistoricalProduct.volume" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalRefund">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalRefund</code><span class="sig-paren">(</span><em>id</em>, <em>date</em>, <em>amount</em>, <em>customer</em>, <em>coopeman</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalRefund" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalRefund.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalRefund.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalRefund.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalRefund.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.HistoricalRefund.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#gestion.models.HistoricalRefund.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#gestion.models.HistoricalRefund.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.HistoricalRefund.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.HistoricalRefund.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.date">
|
||
<code class="descname">date</code><a class="headerlink" href="#gestion.models.HistoricalRefund.date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalRefund.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalRefund.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalRefund.get_next_by_date">
|
||
<code class="descname">get_next_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalRefund.get_next_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalRefund.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalRefund.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalRefund.get_previous_by_date">
|
||
<code class="descname">get_previous_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalRefund.get_previous_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalRefund.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalRefund.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalRefund.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalRefund.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalRefund.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalRefund.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalRefund.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalRefund.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalRefund.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalRefund.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalRefund.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalRefund.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.Refund" title="gestion.models.Refund"><code class="xref py py-class docutils literal notranslate"><span class="pre">Refund</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalRefund.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalRefund.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalRefund.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalRefund.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalRefund.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalRefund.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.HistoricalReload">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">HistoricalReload</code><span class="sig-paren">(</span><em>id</em>, <em>amount</em>, <em>date</em>, <em>customer</em>, <em>PaymentMethod</em>, <em>coopeman</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalReload" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="gestion.models.HistoricalReload.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.HistoricalReload.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.HistoricalReload.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.HistoricalReload.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.PaymentMethod">
|
||
<code class="descname">PaymentMethod</code><a class="headerlink" href="#gestion.models.HistoricalReload.PaymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.PaymentMethod_id">
|
||
<code class="descname">PaymentMethod_id</code><a class="headerlink" href="#gestion.models.HistoricalReload.PaymentMethod_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.HistoricalReload.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#gestion.models.HistoricalReload.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#gestion.models.HistoricalReload.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.HistoricalReload.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.HistoricalReload.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.date">
|
||
<code class="descname">date</code><a class="headerlink" href="#gestion.models.HistoricalReload.date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalReload.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalReload.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalReload.get_next_by_date">
|
||
<code class="descname">get_next_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalReload.get_next_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalReload.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalReload.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalReload.get_previous_by_date">
|
||
<code class="descname">get_previous_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalReload.get_previous_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalReload.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalReload.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#gestion.models.HistoricalReload.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#gestion.models.HistoricalReload.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#gestion.models.HistoricalReload.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#gestion.models.HistoricalReload.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#gestion.models.HistoricalReload.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#gestion.models.HistoricalReload.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#gestion.models.HistoricalReload.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.HistoricalReload.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#gestion.models.HistoricalReload.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#gestion.models.HistoricalReload.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#gestion.models.Reload" title="gestion.models.Reload"><code class="xref py py-class docutils literal notranslate"><span class="pre">Reload</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#gestion.models.HistoricalReload.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.HistoricalReload.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.HistoricalReload.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#gestion.models.HistoricalReload.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.HistoricalReload.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.HistoricalReload.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.Keg">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">Keg</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Keg" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores a keg.</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Keg.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.Keg.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Keg.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.Keg.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.Keg.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The price of the keg.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.barcode">
|
||
<code class="descname">barcode</code><a class="headerlink" href="#gestion.models.Keg.barcode" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The barcode of the keg.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.capacity">
|
||
<code class="descname">capacity</code><a class="headerlink" href="#gestion.models.Keg.capacity" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The capacity, in liters, of the keg.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.demi">
|
||
<code class="descname">demi</code><a class="headerlink" href="#gestion.models.Keg.demi" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The related <a class="reference internal" href="#gestion.models.Product" title="gestion.models.Product"><code class="xref py py-class docutils literal notranslate"><span class="pre">Product</span></code></a> for demi.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.demi_id">
|
||
<code class="descname">demi_id</code><a class="headerlink" href="#gestion.models.Keg.demi_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.galopin">
|
||
<code class="descname">galopin</code><a class="headerlink" href="#gestion.models.Keg.galopin" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The related <a class="reference internal" href="#gestion.models.Product" title="gestion.models.Product"><code class="xref py py-class docutils literal notranslate"><span class="pre">Product</span></code></a> for galopin.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.galopin_id">
|
||
<code class="descname">galopin_id</code><a class="headerlink" href="#gestion.models.Keg.galopin_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.Keg.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.Keg.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#gestion.models.Keg.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, will be displayed on <a class="reference internal" href="views.html#gestion.views.manage" title="gestion.views.manage"><code class="xref py py-func docutils literal notranslate"><span class="pre">manage()</span></code></a> view</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.keghistory_set">
|
||
<code class="descname">keghistory_set</code><a class="headerlink" href="#gestion.models.Keg.keghistory_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#gestion.models.Keg.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the keg.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.Keg.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.pinte">
|
||
<code class="descname">pinte</code><a class="headerlink" href="#gestion.models.Keg.pinte" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The related <a class="reference internal" href="#gestion.models.Product" title="gestion.models.Product"><code class="xref py py-class docutils literal notranslate"><span class="pre">Product</span></code></a> for pint.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.pinte_id">
|
||
<code class="descname">pinte_id</code><a class="headerlink" href="#gestion.models.Keg.pinte_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Keg.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Keg.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Keg.stockHold">
|
||
<code class="descname">stockHold</code><a class="headerlink" href="#gestion.models.Keg.stockHold" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The number of this keg in the hold.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.KegHistory">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">KegHistory</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.KegHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores a keg history, related to <a class="reference internal" href="#gestion.models.Keg" title="gestion.models.Keg"><code class="xref py py-class docutils literal notranslate"><span class="pre">Keg</span></code></a>.</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.KegHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.KegHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.KegHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.KegHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.amountSold">
|
||
<code class="descname">amountSold</code><a class="headerlink" href="#gestion.models.KegHistory.amountSold" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The quantity, in euros, sold.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.closingDate">
|
||
<code class="descname">closingDate</code><a class="headerlink" href="#gestion.models.KegHistory.closingDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The date when the keg was closed</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.KegHistory.get_next_by_openingDate">
|
||
<code class="descname">get_next_by_openingDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: openingDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.KegHistory.get_next_by_openingDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.KegHistory.get_previous_by_openingDate">
|
||
<code class="descname">get_previous_by_openingDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: openingDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.KegHistory.get_previous_by_openingDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.KegHistory.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.KegHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.isCurrentKegHistory">
|
||
<code class="descname">isCurrentKegHistory</code><a class="headerlink" href="#gestion.models.KegHistory.isCurrentKegHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, it corresponds to the current Keg history of <a class="reference internal" href="#gestion.models.Keg" title="gestion.models.Keg"><code class="xref py py-class docutils literal notranslate"><span class="pre">Keg</span></code></a> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.keg">
|
||
<code class="descname">keg</code><a class="headerlink" href="#gestion.models.KegHistory.keg" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The <a class="reference internal" href="#gestion.models.Keg" title="gestion.models.Keg"><code class="xref py py-class docutils literal notranslate"><span class="pre">Keg</span></code></a> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.keg_id">
|
||
<code class="descname">keg_id</code><a class="headerlink" href="#gestion.models.KegHistory.keg_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.KegHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.openingDate">
|
||
<code class="descname">openingDate</code><a class="headerlink" href="#gestion.models.KegHistory.openingDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The date when the keg was opened.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.KegHistory.quantitySold">
|
||
<code class="descname">quantitySold</code><a class="headerlink" href="#gestion.models.KegHistory.quantitySold" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The quantity, in liters, sold.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.KegHistory.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.KegHistory.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.Menu">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">Menu</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Menu" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores menus.</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Menu.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.Menu.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Menu.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.Menu.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.adherent_required">
|
||
<code class="descname">adherent_required</code><a class="headerlink" href="#gestion.models.Menu.adherent_required" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Test if the menu contains a restricted <a class="reference internal" href="#gestion.models.Product" title="gestion.models.Product"><code class="xref py py-class docutils literal notranslate"><span class="pre">Product</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.Menu.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Price of the menu.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.articles">
|
||
<code class="descname">articles</code><a class="headerlink" href="#gestion.models.Menu.articles" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores <a class="reference internal" href="#gestion.models.Product" title="gestion.models.Product"><code class="xref py py-class docutils literal notranslate"><span class="pre">Products</span></code></a> contained in the menu</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.barcode">
|
||
<code class="descname">barcode</code><a class="headerlink" href="#gestion.models.Menu.barcode" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Barcode of the menu.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.Menu.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.Menu.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#gestion.models.Menu.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, the menu will be displayed on the <a class="reference internal" href="views.html#gestion.views.manage" title="gestion.views.manage"><code class="xref py py-func docutils literal notranslate"><span class="pre">gestion.views.manage()</span></code></a> view</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.menuhistory_set">
|
||
<code class="descname">menuhistory_set</code><a class="headerlink" href="#gestion.models.Menu.menuhistory_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#gestion.models.Menu.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Name of the menu.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Menu.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.Menu.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Menu.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Menu.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.MenuHistory">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">MenuHistory</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.MenuHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores MenuHistory related to <a class="reference internal" href="#gestion.models.Menu" title="gestion.models.Menu"><code class="xref py py-class docutils literal notranslate"><span class="pre">Menu</span></code></a>.</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.MenuHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.MenuHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.MenuHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.MenuHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.MenuHistory.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Price of the purchase.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#gestion.models.MenuHistory.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Coopeman (:class:django.contrib.auth.models.User`) who collected the money.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#gestion.models.MenuHistory.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.MenuHistory.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.MenuHistory.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.date">
|
||
<code class="descname">date</code><a class="headerlink" href="#gestion.models.MenuHistory.date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Date of the purhcase.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.MenuHistory.get_next_by_date">
|
||
<code class="descname">get_next_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.MenuHistory.get_next_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.MenuHistory.get_previous_by_date">
|
||
<code class="descname">get_previous_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.MenuHistory.get_previous_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.MenuHistory.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.MenuHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.menu">
|
||
<code class="descname">menu</code><a class="headerlink" href="#gestion.models.MenuHistory.menu" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p><a class="reference internal" href="#gestion.models.Menu" title="gestion.models.Menu"><code class="xref py py-class docutils literal notranslate"><span class="pre">gestion.models.Menu</span></code></a> purchased.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.menu_id">
|
||
<code class="descname">menu_id</code><a class="headerlink" href="#gestion.models.MenuHistory.menu_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.MenuHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.paymentMethod">
|
||
<code class="descname">paymentMethod</code><a class="headerlink" href="#gestion.models.MenuHistory.paymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p><a class="reference internal" href="#preferences.models.PaymentMethod" title="preferences.models.PaymentMethod"><code class="xref py py-class docutils literal notranslate"><span class="pre">Payment</span> <span class="pre">Method</span></code></a> of the Menu purchased.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.paymentMethod_id">
|
||
<code class="descname">paymentMethod_id</code><a class="headerlink" href="#gestion.models.MenuHistory.paymentMethod_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.MenuHistory.quantity">
|
||
<code class="descname">quantity</code><a class="headerlink" href="#gestion.models.MenuHistory.quantity" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Client (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.MenuHistory.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.MenuHistory.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.Pinte">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">Pinte</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Pinte" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores a physical pinte</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Pinte.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.Pinte.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Pinte.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.Pinte.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Pinte.current_owner">
|
||
<code class="descname">current_owner</code><a class="headerlink" href="#gestion.models.Pinte.current_owner" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The current owner (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Pinte.current_owner_id">
|
||
<code class="descname">current_owner_id</code><a class="headerlink" href="#gestion.models.Pinte.current_owner_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Pinte.get_next_by_last_update_date">
|
||
<code class="descname">get_next_by_last_update_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: last_update_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Pinte.get_next_by_last_update_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Pinte.get_previous_by_last_update_date">
|
||
<code class="descname">get_previous_by_last_update_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: last_update_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Pinte.get_previous_by_last_update_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Pinte.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.Pinte.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Pinte.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.Pinte.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Pinte.last_update_date">
|
||
<code class="descname">last_update_date</code><a class="headerlink" href="#gestion.models.Pinte.last_update_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The last update date</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Pinte.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.Pinte.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Pinte.previous_owner">
|
||
<code class="descname">previous_owner</code><a class="headerlink" href="#gestion.models.Pinte.previous_owner" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The previous owner (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Pinte.previous_owner_id">
|
||
<code class="descname">previous_owner_id</code><a class="headerlink" href="#gestion.models.Pinte.previous_owner_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Pinte.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Pinte.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.Product">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">Product</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Product" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores a product.</p>
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.BOTTLE">
|
||
<code class="descname">BOTTLE</code><em class="property"> = 'BT'</em><a class="headerlink" href="#gestion.models.Product.BOTTLE" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.D_PRESSION">
|
||
<code class="descname">D_PRESSION</code><em class="property"> = 'DP'</em><a class="headerlink" href="#gestion.models.Product.D_PRESSION" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Product.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.Product.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.FOOD">
|
||
<code class="descname">FOOD</code><em class="property"> = 'FO'</em><a class="headerlink" href="#gestion.models.Product.FOOD" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.G_PRESSION">
|
||
<code class="descname">G_PRESSION</code><em class="property"> = 'GP'</em><a class="headerlink" href="#gestion.models.Product.G_PRESSION" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Product.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.Product.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.PANINI">
|
||
<code class="descname">PANINI</code><em class="property"> = 'PA'</em><a class="headerlink" href="#gestion.models.Product.PANINI" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.P_PRESSION">
|
||
<code class="descname">P_PRESSION</code><em class="property"> = 'PP'</em><a class="headerlink" href="#gestion.models.Product.P_PRESSION" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.SOFT">
|
||
<code class="descname">SOFT</code><em class="property"> = 'SO'</em><a class="headerlink" href="#gestion.models.Product.SOFT" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.TYPEINPUT_CHOICES_CATEGORIE">
|
||
<code class="descname">TYPEINPUT_CHOICES_CATEGORIE</code><em class="property"> = (('PP', 'Pinte Pression'), ('DP', 'Demi Pression'), ('GP', 'Galopin pression'), ('BT', 'Bouteille'), ('SO', 'Soft'), ('FO', 'En-cas'), ('PA', 'Ingredients panini'))</em><a class="headerlink" href="#gestion.models.Product.TYPEINPUT_CHOICES_CATEGORIE" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.adherentRequired">
|
||
<code class="descname">adherentRequired</code><a class="headerlink" href="#gestion.models.Product.adherentRequired" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, only adherents will be able to buy this product</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.Product.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The price of the product.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.barcode">
|
||
<code class="descname">barcode</code><a class="headerlink" href="#gestion.models.Product.barcode" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The barcode of the product.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.category">
|
||
<code class="descname">category</code><a class="headerlink" href="#gestion.models.Product.category" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The category of the product</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.consumption_set">
|
||
<code class="descname">consumption_set</code><a class="headerlink" href="#gestion.models.Product.consumption_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.consumptionhistory_set">
|
||
<code class="descname">consumptionhistory_set</code><a class="headerlink" href="#gestion.models.Product.consumptionhistory_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.deg">
|
||
<code class="descname">deg</code><a class="headerlink" href="#gestion.models.Product.deg" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Degree of alcohol, if relevant</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.futd">
|
||
<code class="descname">futd</code><a class="headerlink" href="#gestion.models.Product.futd" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.futg">
|
||
<code class="descname">futg</code><a class="headerlink" href="#gestion.models.Product.futg" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.futp">
|
||
<code class="descname">futp</code><a class="headerlink" href="#gestion.models.Product.futp" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Product.get_category_display">
|
||
<code class="descname">get_category_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: category></em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Product.get_category_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.Product.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.Product.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#gestion.models.Product.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, will be displayed on the <a class="reference internal" href="views.html#gestion.views.manage" title="gestion.views.manage"><code class="xref py py-func docutils literal notranslate"><span class="pre">gestion.views.manage()</span></code></a> view.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.menu_set">
|
||
<code class="descname">menu_set</code><a class="headerlink" href="#gestion.models.Product.menu_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the forward and reverse sides of
|
||
a many-to-many relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Pizza</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">toppings</span> <span class="o">=</span> <span class="n">ManyToManyField</span><span class="p">(</span><span class="n">Topping</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'pizzas'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Pizza.toppings</span></code> and <code class="docutils literal notranslate"><span class="pre">Topping.pizzas</span></code> are <code class="docutils literal notranslate"><span class="pre">ManyToManyDescriptor</span></code>
|
||
instances.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#gestion.models.Product.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the product.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.needQuantityButton">
|
||
<code class="descname">needQuantityButton</code><a class="headerlink" href="#gestion.models.Product.needQuantityButton" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, a javascript quantity button will be displayed</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.Product.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.ranking">
|
||
<code class="descname">ranking</code><a class="headerlink" href="#gestion.models.Product.ranking" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the first 25 users with <code class="xref py py-func docutils literal notranslate"><span class="pre">user_ranking()</span></code></p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Product.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Product.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.showingMultiplier">
|
||
<code class="descname">showingMultiplier</code><a class="headerlink" href="#gestion.models.Product.showingMultiplier" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>On the graphs on <a class="reference internal" href="views.html#users.views.profile" title="users.views.profile"><code class="xref py py-func docutils literal notranslate"><span class="pre">users.views.profile()</span></code></a> view, the number of total consumptions is divised by the showingMultiplier</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.stockBar">
|
||
<code class="descname">stockBar</code><a class="headerlink" href="#gestion.models.Product.stockBar" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Number of product at the bar.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.stockHold">
|
||
<code class="descname">stockHold</code><a class="headerlink" href="#gestion.models.Product.stockHold" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Number of product in the hold.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Product.user_ranking">
|
||
<code class="descname">user_ranking</code><span class="sig-paren">(</span><em>pk</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Product.user_ranking" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Return the user ranking for the product</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Product.volume">
|
||
<code class="descname">volume</code><a class="headerlink" href="#gestion.models.Product.volume" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The volume, if relevant, of the product</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.Refund">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">Refund</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Refund" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores refunds.</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Refund.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.Refund.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Refund.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.Refund.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.Refund.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Amount of the refund.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#gestion.models.Refund.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Coopeman (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>) who realized the refund.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#gestion.models.Refund.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.Refund.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Client (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.Refund.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.date">
|
||
<code class="descname">date</code><a class="headerlink" href="#gestion.models.Refund.date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Date of the refund</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Refund.get_next_by_date">
|
||
<code class="descname">get_next_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Refund.get_next_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Refund.get_previous_by_date">
|
||
<code class="descname">get_previous_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Refund.get_previous_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.Refund.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.Refund.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Refund.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.Refund.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Refund.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Refund.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="gestion.models.Reload">
|
||
<em class="property">class </em><code class="descclassname">gestion.models.</code><code class="descname">Reload</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Reload" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores reloads.</p>
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Reload.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#gestion.models.Reload.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="gestion.models.Reload.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#gestion.models.Reload.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.PaymentMethod">
|
||
<code class="descname">PaymentMethod</code><a class="headerlink" href="#gestion.models.Reload.PaymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p><a class="reference internal" href="#preferences.models.PaymentMethod" title="preferences.models.PaymentMethod"><code class="xref py py-class docutils literal notranslate"><span class="pre">Payment</span> <span class="pre">Method</span></code></a> of the reload.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.PaymentMethod_id">
|
||
<code class="descname">PaymentMethod_id</code><a class="headerlink" href="#gestion.models.Reload.PaymentMethod_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#gestion.models.Reload.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Amount of the reload.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#gestion.models.Reload.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Coopeman (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>) who collected the reload.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#gestion.models.Reload.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.customer">
|
||
<code class="descname">customer</code><a class="headerlink" href="#gestion.models.Reload.customer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Client (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.customer_id">
|
||
<code class="descname">customer_id</code><a class="headerlink" href="#gestion.models.Reload.customer_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.date">
|
||
<code class="descname">date</code><a class="headerlink" href="#gestion.models.Reload.date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Date of the reload.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Reload.get_next_by_date">
|
||
<code class="descname">get_next_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Reload.get_next_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Reload.get_previous_by_date">
|
||
<code class="descname">get_previous_by_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Reload.get_previous_by_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#gestion.models.Reload.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#gestion.models.Reload.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="gestion.models.Reload.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#gestion.models.Reload.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="gestion.models.Reload.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.Reload.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="function">
|
||
<dt id="gestion.models.isDemi">
|
||
<code class="descclassname">gestion.models.</code><code class="descname">isDemi</code><span class="sig-paren">(</span><em>id</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.isDemi" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="function">
|
||
<dt id="gestion.models.isGalopin">
|
||
<code class="descclassname">gestion.models.</code><code class="descname">isGalopin</code><span class="sig-paren">(</span><em>id</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.isGalopin" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="function">
|
||
<dt id="gestion.models.isPinte">
|
||
<code class="descclassname">gestion.models.</code><code class="descname">isPinte</code><span class="sig-paren">(</span><em>id</em><span class="sig-paren">)</span><a class="headerlink" href="#gestion.models.isPinte" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="module-users.models">
|
||
<span id="users-app-models"></span><h2>Users app models<a class="headerlink" href="#module-users.models" title="Permalink to this headline">¶</a></h2>
|
||
<dl class="class">
|
||
<dt id="users.models.CotisationHistory">
|
||
<em class="property">class </em><code class="descclassname">users.models.</code><code class="descname">CotisationHistory</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.CotisationHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores cotisation histories, related to <a class="reference internal" href="#preferences.models.Cotisation" title="preferences.models.Cotisation"><code class="xref py py-class docutils literal notranslate"><span class="pre">preferences.models.Cotisation</span></code></a>.</p>
|
||
<dl class="exception">
|
||
<dt id="users.models.CotisationHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#users.models.CotisationHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="users.models.CotisationHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#users.models.CotisationHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#users.models.CotisationHistory.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Price, in euros, of the cotisation.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#users.models.CotisationHistory.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>User (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>) who registered the cotisation.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#users.models.CotisationHistory.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.cotisation">
|
||
<code class="descname">cotisation</code><a class="headerlink" href="#users.models.CotisationHistory.cotisation" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p><a class="reference internal" href="#preferences.models.Cotisation" title="preferences.models.Cotisation"><code class="xref py py-class docutils literal notranslate"><span class="pre">Cotisation</span></code></a> related.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.cotisation_id">
|
||
<code class="descname">cotisation_id</code><a class="headerlink" href="#users.models.CotisationHistory.cotisation_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.duration">
|
||
<code class="descname">duration</code><a class="headerlink" href="#users.models.CotisationHistory.duration" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Duration, in days, of the cotisation.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.endDate">
|
||
<code class="descname">endDate</code><a class="headerlink" href="#users.models.CotisationHistory.endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>End date of the cotisation.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.CotisationHistory.get_next_by_endDate">
|
||
<code class="descname">get_next_by_endDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: endDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.CotisationHistory.get_next_by_endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.CotisationHistory.get_next_by_paymentDate">
|
||
<code class="descname">get_next_by_paymentDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: paymentDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.CotisationHistory.get_next_by_paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.CotisationHistory.get_previous_by_endDate">
|
||
<code class="descname">get_previous_by_endDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: endDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.CotisationHistory.get_previous_by_endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.CotisationHistory.get_previous_by_paymentDate">
|
||
<code class="descname">get_previous_by_paymentDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: paymentDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.CotisationHistory.get_previous_by_paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#users.models.CotisationHistory.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#users.models.CotisationHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#users.models.CotisationHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.paymentDate">
|
||
<code class="descname">paymentDate</code><a class="headerlink" href="#users.models.CotisationHistory.paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Date of the payment.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.paymentMethod">
|
||
<code class="descname">paymentMethod</code><a class="headerlink" href="#users.models.CotisationHistory.paymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p><a class="reference internal" href="#preferences.models.PaymentMethod" title="preferences.models.PaymentMethod"><code class="xref py py-class docutils literal notranslate"><span class="pre">Payment</span> <span class="pre">method</span></code></a> used.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.paymentMethod_id">
|
||
<code class="descname">paymentMethod_id</code><a class="headerlink" href="#users.models.CotisationHistory.paymentMethod_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.CotisationHistory.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.CotisationHistory.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.user">
|
||
<code class="descname">user</code><a class="headerlink" href="#users.models.CotisationHistory.user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Client (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.CotisationHistory.user_id">
|
||
<code class="descname">user_id</code><a class="headerlink" href="#users.models.CotisationHistory.user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="users.models.HistoricalCotisationHistory">
|
||
<em class="property">class </em><code class="descclassname">users.models.</code><code class="descname">HistoricalCotisationHistory</code><span class="sig-paren">(</span><em>id</em>, <em>amount</em>, <em>duration</em>, <em>paymentDate</em>, <em>endDate</em>, <em>user</em>, <em>paymentMethod</em>, <em>cotisation</em>, <em>coopeman</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="users.models.HistoricalCotisationHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="users.models.HistoricalCotisationHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.cotisation">
|
||
<code class="descname">cotisation</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.cotisation" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.cotisation_id">
|
||
<code class="descname">cotisation_id</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.cotisation_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.duration">
|
||
<code class="descname">duration</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.duration" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.endDate">
|
||
<code class="descname">endDate</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalCotisationHistory.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalCotisationHistory.get_next_by_endDate">
|
||
<code class="descname">get_next_by_endDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: endDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory.get_next_by_endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalCotisationHistory.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalCotisationHistory.get_next_by_paymentDate">
|
||
<code class="descname">get_next_by_paymentDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: paymentDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory.get_next_by_paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalCotisationHistory.get_previous_by_endDate">
|
||
<code class="descname">get_previous_by_endDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: endDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory.get_previous_by_endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalCotisationHistory.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalCotisationHistory.get_previous_by_paymentDate">
|
||
<code class="descname">get_previous_by_paymentDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: paymentDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory.get_previous_by_paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#users.models.CotisationHistory" title="users.models.CotisationHistory"><code class="xref py py-class docutils literal notranslate"><span class="pre">CotisationHistory</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#users.models.HistoricalCotisationHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.paymentDate">
|
||
<code class="descname">paymentDate</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.paymentMethod">
|
||
<code class="descname">paymentMethod</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.paymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.paymentMethod_id">
|
||
<code class="descname">paymentMethod_id</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.paymentMethod_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalCotisationHistory.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalCotisationHistory.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.user">
|
||
<code class="descname">user</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalCotisationHistory.user_id">
|
||
<code class="descname">user_id</code><a class="headerlink" href="#users.models.HistoricalCotisationHistory.user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="users.models.HistoricalProfile">
|
||
<em class="property">class </em><code class="descclassname">users.models.</code><code class="descname">HistoricalProfile</code><span class="sig-paren">(</span><em>id</em>, <em>credit</em>, <em>debit</em>, <em>cotisationEnd</em>, <em>user</em>, <em>school</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalProfile" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="users.models.HistoricalProfile.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#users.models.HistoricalProfile.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="users.models.HistoricalProfile.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#users.models.HistoricalProfile.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.cotisationEnd">
|
||
<code class="descname">cotisationEnd</code><a class="headerlink" href="#users.models.HistoricalProfile.cotisationEnd" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.credit">
|
||
<code class="descname">credit</code><a class="headerlink" href="#users.models.HistoricalProfile.credit" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.debit">
|
||
<code class="descname">debit</code><a class="headerlink" href="#users.models.HistoricalProfile.debit" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalProfile.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalProfile.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalProfile.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalProfile.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalProfile.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalProfile.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#users.models.HistoricalProfile.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#users.models.HistoricalProfile.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#users.models.HistoricalProfile.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#users.models.HistoricalProfile.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#users.models.HistoricalProfile.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#users.models.HistoricalProfile.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#users.models.HistoricalProfile.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#users.models.HistoricalProfile.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#users.models.HistoricalProfile.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#users.models.HistoricalProfile.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#users.models.Profile" title="users.models.Profile"><code class="xref py py-class docutils literal notranslate"><span class="pre">Profile</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#users.models.HistoricalProfile.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#users.models.HistoricalProfile.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#users.models.HistoricalProfile.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalProfile.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalProfile.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.school">
|
||
<code class="descname">school</code><a class="headerlink" href="#users.models.HistoricalProfile.school" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.school_id">
|
||
<code class="descname">school_id</code><a class="headerlink" href="#users.models.HistoricalProfile.school_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.user">
|
||
<code class="descname">user</code><a class="headerlink" href="#users.models.HistoricalProfile.user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalProfile.user_id">
|
||
<code class="descname">user_id</code><a class="headerlink" href="#users.models.HistoricalProfile.user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="users.models.HistoricalSchool">
|
||
<em class="property">class </em><code class="descclassname">users.models.</code><code class="descname">HistoricalSchool</code><span class="sig-paren">(</span><em>id</em>, <em>name</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalSchool" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="users.models.HistoricalSchool.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#users.models.HistoricalSchool.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="users.models.HistoricalSchool.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#users.models.HistoricalSchool.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalSchool.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalSchool.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalSchool.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalSchool.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalSchool.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalSchool.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#users.models.HistoricalSchool.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#users.models.HistoricalSchool.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#users.models.HistoricalSchool.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#users.models.HistoricalSchool.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#users.models.HistoricalSchool.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#users.models.HistoricalSchool.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#users.models.HistoricalSchool.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#users.models.HistoricalSchool.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#users.models.HistoricalSchool.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#users.models.HistoricalSchool.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#users.models.School" title="users.models.School"><code class="xref py py-class docutils literal notranslate"><span class="pre">School</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#users.models.HistoricalSchool.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#users.models.HistoricalSchool.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#users.models.HistoricalSchool.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalSchool.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#users.models.HistoricalSchool.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalSchool.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalSchool.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="users.models.HistoricalWhiteListHistory">
|
||
<em class="property">class </em><code class="descclassname">users.models.</code><code class="descname">HistoricalWhiteListHistory</code><span class="sig-paren">(</span><em>id</em>, <em>paymentDate</em>, <em>endDate</em>, <em>duration</em>, <em>user</em>, <em>coopeman</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="users.models.HistoricalWhiteListHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="users.models.HistoricalWhiteListHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.duration">
|
||
<code class="descname">duration</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.duration" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.endDate">
|
||
<code class="descname">endDate</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalWhiteListHistory.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalWhiteListHistory.get_next_by_endDate">
|
||
<code class="descname">get_next_by_endDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: endDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.get_next_by_endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalWhiteListHistory.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalWhiteListHistory.get_next_by_paymentDate">
|
||
<code class="descname">get_next_by_paymentDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: paymentDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.get_next_by_paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalWhiteListHistory.get_previous_by_endDate">
|
||
<code class="descname">get_previous_by_endDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: endDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.get_previous_by_endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalWhiteListHistory.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalWhiteListHistory.get_previous_by_paymentDate">
|
||
<code class="descname">get_previous_by_paymentDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: paymentDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.get_previous_by_paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#users.models.WhiteListHistory" title="users.models.WhiteListHistory"><code class="xref py py-class docutils literal notranslate"><span class="pre">WhiteListHistory</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.paymentDate">
|
||
<code class="descname">paymentDate</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.HistoricalWhiteListHistory.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.user">
|
||
<code class="descname">user</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.HistoricalWhiteListHistory.user_id">
|
||
<code class="descname">user_id</code><a class="headerlink" href="#users.models.HistoricalWhiteListHistory.user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="users.models.Profile">
|
||
<em class="property">class </em><code class="descclassname">users.models.</code><code class="descname">Profile</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.Profile" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores user profile.</p>
|
||
<dl class="exception">
|
||
<dt id="users.models.Profile.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#users.models.Profile.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="users.models.Profile.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#users.models.Profile.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.alcohol">
|
||
<code class="descname">alcohol</code><a class="headerlink" href="#users.models.Profile.alcohol" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Computes ingerated alcohol.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.balance">
|
||
<code class="descname">balance</code><a class="headerlink" href="#users.models.Profile.balance" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Computes client balance (<code class="xref py py-attr docutils literal notranslate"><span class="pre">gestion.models.Profile.credit</span></code> - <code class="xref py py-attr docutils literal notranslate"><span class="pre">gestion.models.Profile.debit</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.cotisationEnd">
|
||
<code class="descname">cotisationEnd</code><a class="headerlink" href="#users.models.Profile.cotisationEnd" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Date of end of cotisation for the client</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.credit">
|
||
<code class="descname">credit</code><a class="headerlink" href="#users.models.Profile.credit" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Amount of money, in euros, put on the account</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.debit">
|
||
<code class="descname">debit</code><a class="headerlink" href="#users.models.Profile.debit" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Amount of money, in euros, spent form the account</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#users.models.Profile.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#users.models.Profile.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.is_adherent">
|
||
<code class="descname">is_adherent</code><a class="headerlink" href="#users.models.Profile.is_adherent" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Test if a client is adherent.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.nb_pintes">
|
||
<code class="descname">nb_pintes</code><a class="headerlink" href="#users.models.Profile.nb_pintes" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Return the number of <a class="reference internal" href="#gestion.models.Pinte" title="gestion.models.Pinte"><code class="xref py py-class docutils literal notranslate"><span class="pre">Pinte(s)</span></code></a> currently owned.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#users.models.Profile.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.Profile.positiveBalance">
|
||
<code class="descname">positiveBalance</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#users.models.Profile.positiveBalance" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Test if the client balance is positive or null.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.rank">
|
||
<code class="descname">rank</code><a class="headerlink" href="#users.models.Profile.rank" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Computes the rank (by <code class="xref py py-attr docutils literal notranslate"><span class="pre">gestion.models.Profile.debit</span></code>) of the client.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.Profile.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.Profile.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.school">
|
||
<code class="descname">school</code><a class="headerlink" href="#users.models.Profile.school" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p><a class="reference internal" href="#users.models.School" title="users.models.School"><code class="xref py py-class docutils literal notranslate"><span class="pre">School</span></code></a> of the client</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.school_id">
|
||
<code class="descname">school_id</code><a class="headerlink" href="#users.models.Profile.school_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.user">
|
||
<code class="descname">user</code><a class="headerlink" href="#users.models.Profile.user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Client (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.Profile.user_id">
|
||
<code class="descname">user_id</code><a class="headerlink" href="#users.models.Profile.user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="users.models.School">
|
||
<em class="property">class </em><code class="descclassname">users.models.</code><code class="descname">School</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.School" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores school.</p>
|
||
<dl class="exception">
|
||
<dt id="users.models.School.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#users.models.School.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="users.models.School.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#users.models.School.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.School.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#users.models.School.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.School.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#users.models.School.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.School.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#users.models.School.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the school</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.School.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#users.models.School.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.School.profile_set">
|
||
<code class="descname">profile_set</code><a class="headerlink" href="#users.models.School.profile_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.School.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.School.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="users.models.WhiteListHistory">
|
||
<em class="property">class </em><code class="descclassname">users.models.</code><code class="descname">WhiteListHistory</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.WhiteListHistory" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores whitelist history.</p>
|
||
<dl class="exception">
|
||
<dt id="users.models.WhiteListHistory.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#users.models.WhiteListHistory.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="users.models.WhiteListHistory.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#users.models.WhiteListHistory.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.coopeman">
|
||
<code class="descname">coopeman</code><a class="headerlink" href="#users.models.WhiteListHistory.coopeman" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>User (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>) who registered the cotisation.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.coopeman_id">
|
||
<code class="descname">coopeman_id</code><a class="headerlink" href="#users.models.WhiteListHistory.coopeman_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.duration">
|
||
<code class="descname">duration</code><a class="headerlink" href="#users.models.WhiteListHistory.duration" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Duration, in days, of the whitelist</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.endDate">
|
||
<code class="descname">endDate</code><a class="headerlink" href="#users.models.WhiteListHistory.endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>End date of the whitelist.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.WhiteListHistory.get_next_by_endDate">
|
||
<code class="descname">get_next_by_endDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: endDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.WhiteListHistory.get_next_by_endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.WhiteListHistory.get_next_by_paymentDate">
|
||
<code class="descname">get_next_by_paymentDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: paymentDate></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.WhiteListHistory.get_next_by_paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.WhiteListHistory.get_previous_by_endDate">
|
||
<code class="descname">get_previous_by_endDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: endDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.WhiteListHistory.get_previous_by_endDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.WhiteListHistory.get_previous_by_paymentDate">
|
||
<code class="descname">get_previous_by_paymentDate</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: paymentDate></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.WhiteListHistory.get_previous_by_paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#users.models.WhiteListHistory.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#users.models.WhiteListHistory.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#users.models.WhiteListHistory.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.paymentDate">
|
||
<code class="descname">paymentDate</code><a class="headerlink" href="#users.models.WhiteListHistory.paymentDate" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Date of the beginning of the whitelist.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="users.models.WhiteListHistory.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.WhiteListHistory.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.user">
|
||
<code class="descname">user</code><a class="headerlink" href="#users.models.WhiteListHistory.user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Client (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="users.models.WhiteListHistory.user_id">
|
||
<code class="descname">user_id</code><a class="headerlink" href="#users.models.WhiteListHistory.user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="function">
|
||
<dt id="users.models.create_user_profile">
|
||
<code class="descclassname">users.models.</code><code class="descname">create_user_profile</code><span class="sig-paren">(</span><em>sender</em>, <em>instance</em>, <em>created</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.create_user_profile" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Create profile when user (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>) is created.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="function">
|
||
<dt id="users.models.save_user_profile">
|
||
<code class="descclassname">users.models.</code><code class="descname">save_user_profile</code><span class="sig-paren">(</span><em>sender</em>, <em>instance</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.save_user_profile" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save profile when user (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>) is saved.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="function">
|
||
<dt id="users.models.str_user">
|
||
<code class="descclassname">users.models.</code><code class="descname">str_user</code><span class="sig-paren">(</span><em>self</em><span class="sig-paren">)</span><a class="headerlink" href="#users.models.str_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Rewrite str method for user (<code class="xref py py-class docutils literal notranslate"><span class="pre">django.contrib.auth.models.User</span></code>).</p>
|
||
</dd></dl>
|
||
|
||
</div>
|
||
<div class="section" id="module-preferences.models">
|
||
<span id="preferences-app-models"></span><h2>Preferences app models<a class="headerlink" href="#module-preferences.models" title="Permalink to this headline">¶</a></h2>
|
||
<dl class="class">
|
||
<dt id="preferences.models.Cotisation">
|
||
<em class="property">class </em><code class="descclassname">preferences.models.</code><code class="descname">Cotisation</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.Cotisation" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores cotisations.</p>
|
||
<dl class="exception">
|
||
<dt id="preferences.models.Cotisation.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#preferences.models.Cotisation.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="preferences.models.Cotisation.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#preferences.models.Cotisation.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.Cotisation.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#preferences.models.Cotisation.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Price of the cotisation.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.Cotisation.cotisationhistory_set">
|
||
<code class="descname">cotisationhistory_set</code><a class="headerlink" href="#preferences.models.Cotisation.cotisationhistory_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.Cotisation.duration">
|
||
<code class="descname">duration</code><a class="headerlink" href="#preferences.models.Cotisation.duration" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Duration (in days) of the cotisation</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.Cotisation.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#preferences.models.Cotisation.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.Cotisation.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#preferences.models.Cotisation.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.Cotisation.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#preferences.models.Cotisation.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.Cotisation.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.Cotisation.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="preferences.models.GeneralPreferences">
|
||
<em class="property">class </em><code class="descclassname">preferences.models.</code><code class="descname">GeneralPreferences</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.GeneralPreferences" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores a unique line of general preferences</p>
|
||
<dl class="exception">
|
||
<dt id="preferences.models.GeneralPreferences.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#preferences.models.GeneralPreferences.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="preferences.models.GeneralPreferences.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#preferences.models.GeneralPreferences.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.active_message">
|
||
<code class="descname">active_message</code><a class="headerlink" href="#preferences.models.GeneralPreferences.active_message" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Message displayed on the <a class="reference internal" href="views.html#preferences.views.inactive" title="preferences.views.inactive"><code class="xref py py-func docutils literal notranslate"><span class="pre">inactive()</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.automatic_logout_time">
|
||
<code class="descname">automatic_logout_time</code><a class="headerlink" href="#preferences.models.GeneralPreferences.automatic_logout_time" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Duration after which the user is automatically disconnected if inactive</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.brewer">
|
||
<code class="descname">brewer</code><a class="headerlink" href="#preferences.models.GeneralPreferences.brewer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the brewer</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.floating_buttons">
|
||
<code class="descname">floating_buttons</code><a class="headerlink" href="#preferences.models.GeneralPreferences.floating_buttons" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, displays floating paymentButtons on the <a class="reference internal" href="views.html#gestion.views.manage" title="gestion.views.manage"><code class="xref py py-func docutils literal notranslate"><span class="pre">manage()</span></code></a> view.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.global_message">
|
||
<code class="descname">global_message</code><a class="headerlink" href="#preferences.models.GeneralPreferences.global_message" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>List of messages, separated by a carriage return. One will be chosen randomly at each request on displayed in the header</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.grocer">
|
||
<code class="descname">grocer</code><a class="headerlink" href="#preferences.models.GeneralPreferences.grocer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the grocer</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#preferences.models.GeneralPreferences.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.home_text">
|
||
<code class="descname">home_text</code><a class="headerlink" href="#preferences.models.GeneralPreferences.home_text" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Text display on the home page</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#preferences.models.GeneralPreferences.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#preferences.models.GeneralPreferences.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, the site will be accessible. If False, all the requests are redirect to <a class="reference internal" href="views.html#preferences.views.inactive" title="preferences.views.inactive"><code class="xref py py-func docutils literal notranslate"><span class="pre">inactive()</span></code></a>.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.lost_pintes_allowed">
|
||
<code class="descname">lost_pintes_allowed</code><a class="headerlink" href="#preferences.models.GeneralPreferences.lost_pintes_allowed" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If > 0, a user will be blocked if he has losted more pints than the value</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.menu">
|
||
<code class="descname">menu</code><a class="headerlink" href="#preferences.models.GeneralPreferences.menu" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The file of the menu</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#preferences.models.GeneralPreferences.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.president">
|
||
<code class="descname">president</code><a class="headerlink" href="#preferences.models.GeneralPreferences.president" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the president</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.rules">
|
||
<code class="descname">rules</code><a class="headerlink" href="#preferences.models.GeneralPreferences.rules" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The file of the internal rules</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.GeneralPreferences.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.GeneralPreferences.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.secretary">
|
||
<code class="descname">secretary</code><a class="headerlink" href="#preferences.models.GeneralPreferences.secretary" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the secretary</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.statutes">
|
||
<code class="descname">statutes</code><a class="headerlink" href="#preferences.models.GeneralPreferences.statutes" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The file of the statutes</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.treasurer">
|
||
<code class="descname">treasurer</code><a class="headerlink" href="#preferences.models.GeneralPreferences.treasurer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the treasurer</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.use_pinte_monitoring">
|
||
<code class="descname">use_pinte_monitoring</code><a class="headerlink" href="#preferences.models.GeneralPreferences.use_pinte_monitoring" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If True, alert will be displayed to allocate pints during order</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.GeneralPreferences.vice_president">
|
||
<code class="descname">vice_president</code><a class="headerlink" href="#preferences.models.GeneralPreferences.vice_president" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the vice-president</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="preferences.models.HistoricalCotisation">
|
||
<em class="property">class </em><code class="descclassname">preferences.models.</code><code class="descname">HistoricalCotisation</code><span class="sig-paren">(</span><em>id</em>, <em>amount</em>, <em>duration</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalCotisation" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="preferences.models.HistoricalCotisation.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="preferences.models.HistoricalCotisation.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.amount">
|
||
<code class="descname">amount</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.amount" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.duration">
|
||
<code class="descname">duration</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.duration" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalCotisation.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalCotisation.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalCotisation.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalCotisation.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalCotisation.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalCotisation.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#preferences.models.Cotisation" title="preferences.models.Cotisation"><code class="xref py py-class docutils literal notranslate"><span class="pre">Cotisation</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#preferences.models.HistoricalCotisation.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalCotisation.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#preferences.models.HistoricalCotisation.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalCotisation.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalCotisation.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences">
|
||
<em class="property">class </em><code class="descclassname">preferences.models.</code><code class="descname">HistoricalGeneralPreferences</code><span class="sig-paren">(</span><em>id</em>, <em>is_active</em>, <em>active_message</em>, <em>global_message</em>, <em>president</em>, <em>vice_president</em>, <em>treasurer</em>, <em>secretary</em>, <em>brewer</em>, <em>grocer</em>, <em>use_pinte_monitoring</em>, <em>lost_pintes_allowed</em>, <em>floating_buttons</em>, <em>home_text</em>, <em>automatic_logout_time</em>, <em>statutes</em>, <em>rules</em>, <em>menu</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.active_message">
|
||
<code class="descname">active_message</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.active_message" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.automatic_logout_time">
|
||
<code class="descname">automatic_logout_time</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.automatic_logout_time" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.brewer">
|
||
<code class="descname">brewer</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.brewer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.floating_buttons">
|
||
<code class="descname">floating_buttons</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.floating_buttons" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.global_message">
|
||
<code class="descname">global_message</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.global_message" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.grocer">
|
||
<code class="descname">grocer</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.grocer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.home_text">
|
||
<code class="descname">home_text</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.home_text" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#preferences.models.GeneralPreferences" title="preferences.models.GeneralPreferences"><code class="xref py py-class docutils literal notranslate"><span class="pre">GeneralPreferences</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.lost_pintes_allowed">
|
||
<code class="descname">lost_pintes_allowed</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.lost_pintes_allowed" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.menu">
|
||
<code class="descname">menu</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.menu" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.president">
|
||
<code class="descname">president</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.president" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.rules">
|
||
<code class="descname">rules</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.rules" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.secretary">
|
||
<code class="descname">secretary</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.secretary" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.statutes">
|
||
<code class="descname">statutes</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.statutes" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.treasurer">
|
||
<code class="descname">treasurer</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.treasurer" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.use_pinte_monitoring">
|
||
<code class="descname">use_pinte_monitoring</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.use_pinte_monitoring" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalGeneralPreferences.vice_president">
|
||
<code class="descname">vice_president</code><a class="headerlink" href="#preferences.models.HistoricalGeneralPreferences.vice_president" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="preferences.models.HistoricalPaymentMethod">
|
||
<em class="property">class </em><code class="descclassname">preferences.models.</code><code class="descname">HistoricalPaymentMethod</code><span class="sig-paren">(</span><em>id</em>, <em>name</em>, <em>is_active</em>, <em>is_usable_in_cotisation</em>, <em>is_usable_in_reload</em>, <em>affect_balance</em>, <em>icon</em>, <em>history_id</em>, <em>history_change_reason</em>, <em>history_date</em>, <em>history_user</em>, <em>history_type</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><dl class="exception">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.affect_balance">
|
||
<code class="descname">affect_balance</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.affect_balance" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.get_history_type_display">
|
||
<code class="descname">get_history_type_display</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.CharField: history_type></em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.get_history_type_display" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.get_next_by_history_date">
|
||
<code class="descname">get_next_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=True</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.get_next_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.get_previous_by_history_date">
|
||
<code class="descname">get_previous_by_history_date</code><span class="sig-paren">(</span><em>*</em>, <em>field=<django.db.models.fields.DateTimeField: history_date></em>, <em>is_next=False</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.get_previous_by_history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.history_change_reason">
|
||
<code class="descname">history_change_reason</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.history_change_reason" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.history_date">
|
||
<code class="descname">history_date</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.history_date" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.history_id">
|
||
<code class="descname">history_id</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.history_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.history_object">
|
||
<code class="descname">history_object</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.history_object" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.history_type">
|
||
<code class="descname">history_type</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.history_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.history_user">
|
||
<code class="descname">history_user</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.history_user" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related object on the forward side of a many-to-one or
|
||
one-to-one (via ForwardOneToOneDescriptor subclass) relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Child.parent</span></code> is a <code class="docutils literal notranslate"><span class="pre">ForwardManyToOneDescriptor</span></code> instance.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.history_user_id">
|
||
<code class="descname">history_user_id</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.history_user_id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.icon">
|
||
<code class="descname">icon</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.icon" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.instance">
|
||
<code class="descname">instance</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.instance" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.instance_type">
|
||
<code class="descname">instance_type</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.instance_type" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>alias of <a class="reference internal" href="#preferences.models.PaymentMethod" title="preferences.models.PaymentMethod"><code class="xref py py-class docutils literal notranslate"><span class="pre">PaymentMethod</span></code></a></p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.is_usable_in_cotisation">
|
||
<code class="descname">is_usable_in_cotisation</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.is_usable_in_cotisation" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.is_usable_in_reload">
|
||
<code class="descname">is_usable_in_reload</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.is_usable_in_reload" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.next_record">
|
||
<code class="descname">next_record</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.next_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the next history record for the instance. <cite>None</cite> if last.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.prev_record">
|
||
<code class="descname">prev_record</code><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.prev_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Get the previous history record for the instance. <cite>None</cite> if first.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.HistoricalPaymentMethod.revert_url">
|
||
<code class="descname">revert_url</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.HistoricalPaymentMethod.revert_url" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>URL for this change in the default admin site.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
<dl class="class">
|
||
<dt id="preferences.models.PaymentMethod">
|
||
<em class="property">class </em><code class="descclassname">preferences.models.</code><code class="descname">PaymentMethod</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.PaymentMethod" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Stores payment methods.</p>
|
||
<dl class="exception">
|
||
<dt id="preferences.models.PaymentMethod.DoesNotExist">
|
||
<em class="property">exception </em><code class="descname">DoesNotExist</code><a class="headerlink" href="#preferences.models.PaymentMethod.DoesNotExist" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="exception">
|
||
<dt id="preferences.models.PaymentMethod.MultipleObjectsReturned">
|
||
<em class="property">exception </em><code class="descname">MultipleObjectsReturned</code><a class="headerlink" href="#preferences.models.PaymentMethod.MultipleObjectsReturned" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.affect_balance">
|
||
<code class="descname">affect_balance</code><a class="headerlink" href="#preferences.models.PaymentMethod.affect_balance" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If true, the PaymentMethod will decrease the user’s balance when used.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.consumptionhistory_set">
|
||
<code class="descname">consumptionhistory_set</code><a class="headerlink" href="#preferences.models.PaymentMethod.consumptionhistory_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.cotisationhistory_set">
|
||
<code class="descname">cotisationhistory_set</code><a class="headerlink" href="#preferences.models.PaymentMethod.cotisationhistory_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.history">
|
||
<code class="descname">history</code><em class="property"> = <simple_history.manager.HistoryManager object></em><a class="headerlink" href="#preferences.models.PaymentMethod.history" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.icon">
|
||
<code class="descname">icon</code><a class="headerlink" href="#preferences.models.PaymentMethod.icon" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A font awesome icon (without the fa)</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.id">
|
||
<code class="descname">id</code><a class="headerlink" href="#preferences.models.PaymentMethod.id" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>A wrapper for a deferred-loading field. When the value is read from this
|
||
object the first time, the query is executed.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.is_active">
|
||
<code class="descname">is_active</code><a class="headerlink" href="#preferences.models.PaymentMethod.is_active" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If False, the PaymentMethod can’t be use anywhere.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.is_usable_in_cotisation">
|
||
<code class="descname">is_usable_in_cotisation</code><a class="headerlink" href="#preferences.models.PaymentMethod.is_usable_in_cotisation" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If true, the PaymentMethod can be used to pay cotisation.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.is_usable_in_reload">
|
||
<code class="descname">is_usable_in_reload</code><a class="headerlink" href="#preferences.models.PaymentMethod.is_usable_in_reload" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>If true, the PaymentMethod can be used to reload an user account.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.menuhistory_set">
|
||
<code class="descname">menuhistory_set</code><a class="headerlink" href="#preferences.models.PaymentMethod.menuhistory_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.name">
|
||
<code class="descname">name</code><a class="headerlink" href="#preferences.models.PaymentMethod.name" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>The name of the PaymentMethod.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.objects">
|
||
<code class="descname">objects</code><em class="property"> = <django.db.models.manager.Manager object></em><a class="headerlink" href="#preferences.models.PaymentMethod.objects" title="Permalink to this definition">¶</a></dt>
|
||
<dd></dd></dl>
|
||
|
||
<dl class="attribute">
|
||
<dt id="preferences.models.PaymentMethod.reload_set">
|
||
<code class="descname">reload_set</code><a class="headerlink" href="#preferences.models.PaymentMethod.reload_set" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Accessor to the related objects manager on the reverse side of a
|
||
many-to-one relation.</p>
|
||
<p>In the example:</p>
|
||
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">class</span> <span class="nc">Child</span><span class="p">(</span><span class="n">Model</span><span class="p">):</span>
|
||
<span class="n">parent</span> <span class="o">=</span> <span class="n">ForeignKey</span><span class="p">(</span><span class="n">Parent</span><span class="p">,</span> <span class="n">related_name</span><span class="o">=</span><span class="s1">'children'</span><span class="p">)</span>
|
||
</pre></div>
|
||
</div>
|
||
<p><code class="docutils literal notranslate"><span class="pre">Parent.children</span></code> is a <code class="docutils literal notranslate"><span class="pre">ReverseManyToOneDescriptor</span></code> instance.</p>
|
||
<p>Most of the implementation is delegated to a dynamically defined manager
|
||
class built by <code class="docutils literal notranslate"><span class="pre">create_forward_many_to_many_manager()</span></code> defined below.</p>
|
||
</dd></dl>
|
||
|
||
<dl class="method">
|
||
<dt id="preferences.models.PaymentMethod.save_without_historical_record">
|
||
<code class="descname">save_without_historical_record</code><span class="sig-paren">(</span><em>*args</em>, <em>**kwargs</em><span class="sig-paren">)</span><a class="headerlink" href="#preferences.models.PaymentMethod.save_without_historical_record" title="Permalink to this definition">¶</a></dt>
|
||
<dd><p>Save model without saving a historical record</p>
|
||
<p>Make sure you know what you’re doing before you use this method.</p>
|
||
</dd></dl>
|
||
|
||
</dd></dl>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
|
||
</div>
|
||
|
||
</div>
|
||
<footer>
|
||
|
||
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
|
||
|
||
<a href="admin.html" class="btn btn-neutral float-right" title="Admin documentation" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
|
||
|
||
|
||
<a href="views.html" class="btn btn-neutral float-left" title="Views documentation" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
|
||
|
||
</div>
|
||
|
||
|
||
<hr/>
|
||
|
||
<div role="contentinfo">
|
||
<p>
|
||
© Copyright 2019, Yoann Pietri
|
||
|
||
</p>
|
||
</div>
|
||
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
||
|
||
</footer>
|
||
|
||
</div>
|
||
</div>
|
||
|
||
</section>
|
||
|
||
</div>
|
||
|
||
|
||
|
||
<script type="text/javascript">
|
||
jQuery(function () {
|
||
SphinxRtdTheme.Navigation.enable(true);
|
||
});
|
||
</script>
|
||
|
||
|
||
|
||
|
||
|
||
|
||
</body>
|
||
</html> |