mirror of
https://github.com/ae-utbm/sith.git
synced 2024-12-24 16:51:17 +00:00
4695 lines
134 KiB
HTML
4695 lines
134 KiB
HTML
|
|
||
|
<!doctype html>
|
||
|
<html lang="fr" class="no-js">
|
||
|
<head>
|
||
|
|
||
|
<meta charset="utf-8">
|
||
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
|
|
||
|
<meta name="description" content="Le site de l'association des étudiants de l'UTBM">
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="canonical" href="https://ae-utbm.github.io/sith/reference/counter/schemas/">
|
||
|
|
||
|
|
||
|
<link rel="prev" href="../views/">
|
||
|
|
||
|
|
||
|
<link rel="next" href="../../eboutic/models/">
|
||
|
|
||
|
|
||
|
<link rel="icon" href="../../../img/favicon.png">
|
||
|
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.5.48">
|
||
|
|
||
|
|
||
|
|
||
|
<title>Schemas - Site AE UTBM</title>
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../../assets/stylesheets/main.6f8fc17f.min.css">
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../../assets/stylesheets/palette.06af60db.min.css">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
|
||
|
<style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
|
||
|
|
||
|
|
||
|
|
||
|
<link rel="stylesheet" href="../../../assets/_mkdocstrings.css">
|
||
|
|
||
|
<link rel="stylesheet" href="../../../stylesheets/extra.css">
|
||
|
|
||
|
<script>__md_scope=new URL("../../..",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</head>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="deeppurple" data-md-color-accent="deeppurple">
|
||
|
|
||
|
|
||
|
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
|
||
|
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
|
||
|
<label class="md-overlay" for="__drawer"></label>
|
||
|
<div data-md-component="skip">
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.ClubSchema" class="md-skip">
|
||
|
Aller au contenu
|
||
|
</a>
|
||
|
|
||
|
</div>
|
||
|
<div data-md-component="announce">
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<header class="md-header md-header--shadow" data-md-component="header">
|
||
|
<nav class="md-header__inner md-grid" aria-label="En-tête">
|
||
|
<a href="../../.." title="Site AE UTBM" class="md-header__button md-logo" aria-label="Site AE UTBM" data-md-component="logo">
|
||
|
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54"/></svg>
|
||
|
|
||
|
</a>
|
||
|
<label class="md-header__button md-icon" for="__drawer">
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3zm0 5h18v2H3zm0 5h18v2H3z"/></svg>
|
||
|
</label>
|
||
|
<div class="md-header__title" data-md-component="header-title">
|
||
|
<div class="md-header__ellipsis">
|
||
|
<div class="md-header__topic">
|
||
|
<span class="md-ellipsis">
|
||
|
Site AE UTBM
|
||
|
</span>
|
||
|
</div>
|
||
|
<div class="md-header__topic" data-md-component="header-topic">
|
||
|
<span class="md-ellipsis">
|
||
|
|
||
|
Schemas
|
||
|
|
||
|
</span>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<form class="md-header__option" data-md-component="palette">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-option" data-md-color-media="(prefers-color-scheme: light)" data-md-color-scheme="default" data-md-color-primary="deeppurple" data-md-color-accent="deeppurple" aria-label="Switch to dark mode" type="radio" name="__palette" id="__palette_0">
|
||
|
|
||
|
<label class="md-header__button md-icon" title="Switch to dark mode" for="__palette_1" hidden>
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 7H7a5 5 0 0 0-5 5 5 5 0 0 0 5 5h10a5 5 0 0 0 5-5 5 5 0 0 0-5-5m0 8a3 3 0 0 1-3-3 3 3 0 0 1 3-3 3 3 0 0 1 3 3 3 3 0 0 1-3 3"/></svg>
|
||
|
</label>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-option" data-md-color-media="(prefers-color-scheme: dark)" data-md-color-scheme="slate" data-md-color-primary="blue" data-md-color-accent="blue" aria-label="Switch to light mode" type="radio" name="__palette" id="__palette_1">
|
||
|
|
||
|
<label class="md-header__button md-icon" title="Switch to light mode" for="__palette_0" hidden>
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6m0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4M7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"/></svg>
|
||
|
</label>
|
||
|
|
||
|
|
||
|
</form>
|
||
|
|
||
|
|
||
|
|
||
|
<script>var palette=__md_get("__palette");if(palette&&palette.color){if("(prefers-color-scheme)"===palette.color.media){var media=matchMedia("(prefers-color-scheme: light)"),input=document.querySelector(media.matches?"[data-md-color-media='(prefers-color-scheme: light)']":"[data-md-color-media='(prefers-color-scheme: dark)']");palette.color.media=input.getAttribute("data-md-color-media"),palette.color.scheme=input.getAttribute("data-md-color-scheme"),palette.color.primary=input.getAttribute("data-md-color-primary"),palette.color.accent=input.getAttribute("data-md-color-accent")}for(var[key,value]of Object.entries(palette.color))document.body.setAttribute("data-md-color-"+key,value)}</script>
|
||
|
|
||
|
|
||
|
|
||
|
<label class="md-header__button md-icon" for="__search">
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
|
||
|
</label>
|
||
|
<div class="md-search" data-md-component="search" role="dialog">
|
||
|
<label class="md-search__overlay" for="__search"></label>
|
||
|
<div class="md-search__inner" role="search">
|
||
|
<form class="md-search__form" name="search">
|
||
|
<input type="text" class="md-search__input" name="query" aria-label="Rechercher" placeholder="Rechercher" autocapitalize="off" autocorrect="off" autocomplete="off" spellcheck="false" data-md-component="search-query" required>
|
||
|
<label class="md-search__icon md-icon" for="__search">
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5-1.5 1.5-5-5v-.79l-.27-.27A6.52 6.52 0 0 1 9.5 16 6.5 6.5 0 0 1 3 9.5 6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14 14 12 14 9.5 12 5 9.5 5"/></svg>
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
|
||
|
</label>
|
||
|
<nav class="md-search__options" aria-label="Recherche">
|
||
|
|
||
|
<button type="reset" class="md-search__icon md-icon" title="Effacer" aria-label="Effacer" tabindex="-1">
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/></svg>
|
||
|
</button>
|
||
|
</nav>
|
||
|
|
||
|
</form>
|
||
|
<div class="md-search__output">
|
||
|
<div class="md-search__scrollwrap" tabindex="0" data-md-scrollfix>
|
||
|
<div class="md-search-result" data-md-component="search-result">
|
||
|
<div class="md-search-result__meta">
|
||
|
Initialisation de la recherche
|
||
|
</div>
|
||
|
<ol class="md-search-result__list" role="presentation"></ol>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="md-header__source">
|
||
|
<a href="https://github.com/ae-utbm/sith" title="Aller au dépôt" class="md-source" data-md-component="source">
|
||
|
<div class="md-source__icon md-icon">
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81"/></svg>
|
||
|
</div>
|
||
|
<div class="md-source__repository">
|
||
|
sith
|
||
|
</div>
|
||
|
</a>
|
||
|
</div>
|
||
|
|
||
|
</nav>
|
||
|
|
||
|
</header>
|
||
|
|
||
|
<div class="md-container" data-md-component="container">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<main class="md-main" data-md-component="main">
|
||
|
<div class="md-main__inner md-grid">
|
||
|
|
||
|
|
||
|
|
||
|
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
|
||
|
<div class="md-sidebar__scrollwrap">
|
||
|
<div class="md-sidebar__inner">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
|
||
|
<label class="md-nav__title" for="__drawer">
|
||
|
<a href="../../.." title="Site AE UTBM" class="md-nav__button md-logo" aria-label="Site AE UTBM" data-md-component="logo">
|
||
|
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54"/></svg>
|
||
|
|
||
|
</a>
|
||
|
Site AE UTBM
|
||
|
</label>
|
||
|
|
||
|
<div class="md-nav__source">
|
||
|
<a href="https://github.com/ae-utbm/sith" title="Aller au dépôt" class="md-source" data-md-component="source">
|
||
|
<div class="md-source__icon md-icon">
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.7.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2024 Fonticons, Inc.--><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81"/></svg>
|
||
|
</div>
|
||
|
<div class="md-source__repository">
|
||
|
sith
|
||
|
</div>
|
||
|
</a>
|
||
|
</div>
|
||
|
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../.." class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Accueil
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_2" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_2" id="__nav_2_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Explications
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_2_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_2">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
Explications
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../explanation/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Accueil
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../explanation/technos/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Technologies utilisées
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../explanation/conventions/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Conventions
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../explanation/archives/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Archives
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_3" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_3" id="__nav_3_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Tutoriels
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_3_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_3">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
Tutoriels
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../tutorial/install/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Installer le projet
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../tutorial/install-advanced/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Installer le projet (avancé)
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../tutorial/devtools/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Configurer son éditeur
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../tutorial/structure/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Structure du projet
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../tutorial/perms/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Gestion des permissions
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../tutorial/groups/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Gestion des groupes
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../tutorial/fragments/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Créer des fragments
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../tutorial/etransaction/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Etransactions
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_4" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_4" id="__nav_4_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
How-to
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_4_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_4">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
How-to
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/querysets/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
L'ORM de Django
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/migrations/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Gérer les migrations
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/translation/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Gérer les traductions
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/statics/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Gérer les statics
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/js-import-paths/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Ajouter un chemin d'import javascript
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/prod/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Configurer pour la production
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/logo/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Ajouter un logo de promo
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/subscriptions/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Ajouter une cotisation
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/weekmail/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Modifier le weekmail
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/terminal/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Terminal
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../../howto/direnv/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Direnv
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5" checked>
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5" id="__nav_5_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Reference
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="1" aria-labelledby="__nav_5_label" aria-expanded="true">
|
||
|
<label class="md-nav__title" for="__nav_5">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
Reference
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_1" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_1" id="__nav_5_1_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
accounting
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_1_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_1">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
accounting
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../accounting/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../accounting/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_2" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_2" id="__nav_5_2_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
antispam
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_2_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_2">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
antispam
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../antispam/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../antispam/forms/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Forms
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_3" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_3" id="__nav_5_3_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
club
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_3_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_3">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
club
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../club/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../club/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_4" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_4" id="__nav_5_4_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
com
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_4_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_4">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
com
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../com/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../com/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_5" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_5" id="__nav_5_5_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
core
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_5_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_5">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
core
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../core/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../core/model_fields/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Champs de modèle
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../core/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../core/schemas/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Schemas
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../core/api_permissions/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Api permissions
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_6" checked>
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_6" id="__nav_5_6_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
counter
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_6_label" aria-expanded="true">
|
||
|
<label class="md-nav__title" for="__nav_5_6">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
counter
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--active">
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle" type="checkbox" id="__toc">
|
||
|
|
||
|
|
||
|
|
||
|
<label class="md-nav__link md-nav__link--active" for="__toc">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Schemas
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<a href="./" class="md-nav__link md-nav__link--active">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Schemas
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
<nav class="md-nav md-nav--secondary" aria-label="Table des matières">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<label class="md-nav__title" for="__toc">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
Table des matières
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ClubSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ClubSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.GroupSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
GroupSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.SimpleUserSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
SimpleUserSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
Counter
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
<nav class="md-nav" aria-label="Counter">
|
||
|
<ul class="md-nav__list">
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.gen_token" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
gen_token
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.barmen_list" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
barmen_list
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.get_random_barman" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
get_random_barman
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.update_activity" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
update_activity
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.can_refill" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
can_refill
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.get_top_barmen" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
get_top_barmen
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.get_top_customers" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
get_top_customers
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.get_total_sales" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
get_total_sales
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.customer_is_barman" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
customer_is_barman
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Product" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
Product
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
<nav class="md-nav" aria-label="Product">
|
||
|
<ul class="md-nav__list">
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Product.is_owned_by" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
is_owned_by
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Product.can_be_sold_to" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
can_be_sold_to
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductType" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ProductType
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
<nav class="md-nav" aria-label="ProductType">
|
||
|
<ul class="md-nav__list">
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductType.is_owned_by" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
is_owned_by
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.CounterSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
CounterSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.CounterFilterSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
CounterFilterSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.SimplifiedCounterSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
SimplifiedCounterSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductTypeSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ProductTypeSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.SimpleProductTypeSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
SimpleProductTypeSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ReorderProductTypeSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ReorderProductTypeSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.SimpleProductSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
SimpleProductSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ProductSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductFilterSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ProductFilterSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_7" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_7" id="__nav_5_7_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
eboutic
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_7_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_7">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
eboutic
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../eboutic/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../eboutic/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_8" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_8" id="__nav_5_8_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
election
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_8_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_8">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
election
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../election/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../election/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_9" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_9" id="__nav_5_9_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
forum
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_9_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_9">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
forum
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../forum/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../forum/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_10" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_10" id="__nav_5_10_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
galaxy
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_10_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_10">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
galaxy
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../galaxy/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../galaxy/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_11" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_11" id="__nav_5_11_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
launderette
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_11_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_11">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
launderette
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../launderette/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../launderette/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_12" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_12" id="__nav_5_12_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
matmat
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_12_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_12">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
matmat
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../matmat/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../matmat/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_13" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_13" id="__nav_5_13_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
pedagogy
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_13_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_13">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
pedagogy
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../pedagogy/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../pedagogy/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../pedagogy/schemas/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Schemas
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_14" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_14" id="__nav_5_14_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
rootplace
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_14_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_14">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
rootplace
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../rootplace/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../rootplace/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_15" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_15" id="__nav_5_15_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
sas
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_15_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_15">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
sas
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../sas/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../sas/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../sas/schemas/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Schemas
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_16" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_16" id="__nav_5_16_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
staticfiles
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_16_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_16">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
staticfiles
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../staticfiles/apps/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Apps
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../staticfiles/storage/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Storage
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../staticfiles/finders/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Finders
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../staticfiles/processors/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Processors
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_17" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_17" id="__nav_5_17_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
subscription
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_17_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_17">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
subscription
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../subscription/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../subscription/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item md-nav__item--nested">
|
||
|
|
||
|
|
||
|
|
||
|
<input class="md-nav__toggle md-toggle " type="checkbox" id="__nav_5_18" >
|
||
|
|
||
|
|
||
|
<label class="md-nav__link" for="__nav_5_18" id="__nav_5_18_label" tabindex="0">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
trombi
|
||
|
</span>
|
||
|
|
||
|
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
</label>
|
||
|
|
||
|
<nav class="md-nav" data-md-level="2" aria-labelledby="__nav_5_18_label" aria-expanded="false">
|
||
|
<label class="md-nav__title" for="__nav_5_18">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
trombi
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-scrollfix>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../trombi/models/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Models
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="../../trombi/views/" class="md-nav__link">
|
||
|
|
||
|
|
||
|
<span class="md-ellipsis">
|
||
|
Views
|
||
|
</span>
|
||
|
|
||
|
|
||
|
</a>
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
|
||
|
<div class="md-sidebar__scrollwrap">
|
||
|
<div class="md-sidebar__inner">
|
||
|
|
||
|
|
||
|
<nav class="md-nav md-nav--secondary" aria-label="Table des matières">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<label class="md-nav__title" for="__toc">
|
||
|
<span class="md-nav__icon md-icon"></span>
|
||
|
Table des matières
|
||
|
</label>
|
||
|
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ClubSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ClubSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.GroupSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
GroupSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.SimpleUserSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
SimpleUserSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
Counter
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
<nav class="md-nav" aria-label="Counter">
|
||
|
<ul class="md-nav__list">
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.gen_token" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
gen_token
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.barmen_list" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
barmen_list
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.get_random_barman" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
get_random_barman
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.update_activity" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
update_activity
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.can_refill" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
can_refill
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.get_top_barmen" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
get_top_barmen
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.get_top_customers" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
get_top_customers
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.get_total_sales" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
get_total_sales
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Counter.customer_is_barman" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
customer_is_barman
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Product" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
Product
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
<nav class="md-nav" aria-label="Product">
|
||
|
<ul class="md-nav__list">
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Product.is_owned_by" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
is_owned_by
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.Product.can_be_sold_to" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
can_be_sold_to
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductType" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ProductType
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
<nav class="md-nav" aria-label="ProductType">
|
||
|
<ul class="md-nav__list">
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductType.is_owned_by" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
is_owned_by
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</nav>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.CounterSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
CounterSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.CounterFilterSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
CounterFilterSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.SimplifiedCounterSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
SimplifiedCounterSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductTypeSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ProductTypeSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.SimpleProductTypeSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
SimpleProductTypeSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ReorderProductTypeSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ReorderProductTypeSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.SimpleProductSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
SimpleProductSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ProductSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
<li class="md-nav__item">
|
||
|
<a href="#counter.schemas.ProductFilterSchema" class="md-nav__link">
|
||
|
<span class="md-ellipsis">
|
||
|
ProductFilterSchema
|
||
|
</span>
|
||
|
</a>
|
||
|
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
</nav>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
<div class="md-content" data-md-component="content">
|
||
|
<article class="md-content__inner md-typeset">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<h1>Schemas</h1>
|
||
|
|
||
|
<div class="doc doc-object doc-module">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents first">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.ClubSchema" class="doc doc-heading">
|
||
|
<code>ClubSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.ClubSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.GroupSchema" class="doc doc-heading">
|
||
|
<code>GroupSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.GroupSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.SimpleUserSchema" class="doc doc-heading">
|
||
|
<code>SimpleUserSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.SimpleUserSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
<p>A schema with the minimum amount of information to represent a user.</p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.Counter" class="doc doc-heading">
|
||
|
<code>Counter</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.Counter" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="django.db.models.Model">Model</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.gen_token" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">gen_token</span><span class="p">()</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.gen_token" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Generate a new token for this counter.</p>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-537">537</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-538">538</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-539">539</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-540">540</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-541">541</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-542">542</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-537"><a id="__codelineno-0-537" name="__codelineno-0-537"></a><span class="k">def</span> <span class="nf">gen_token</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-></span> <span class="kc">None</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-538"><a id="__codelineno-0-538" name="__codelineno-0-538"></a><span class="w"> </span><span class="sd">"""Generate a new token for this counter."""</span>
|
||
|
</span><span id="__span-0-539"><a id="__codelineno-0-539" name="__codelineno-0-539"></a> <span class="bp">self</span><span class="o">.</span><span class="n">token</span> <span class="o">=</span> <span class="s2">""</span><span class="o">.</span><span class="n">join</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-540"><a id="__codelineno-0-540" name="__codelineno-0-540"></a> <span class="n">random</span><span class="o">.</span><span class="n">choice</span><span class="p">(</span><span class="n">string</span><span class="o">.</span><span class="n">ascii_letters</span> <span class="o">+</span> <span class="n">string</span><span class="o">.</span><span class="n">digits</span><span class="p">)</span> <span class="k">for</span> <span class="n">_</span> <span class="ow">in</span> <span class="nb">range</span><span class="p">(</span><span class="mi">30</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-541"><a id="__codelineno-0-541" name="__codelineno-0-541"></a> <span class="p">)</span>
|
||
|
</span><span id="__span-0-542"><a id="__codelineno-0-542" name="__codelineno-0-542"></a> <span class="bp">self</span><span class="o">.</span><span class="n">save</span><span class="p">()</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.barmen_list" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">barmen_list</span><span class="p">()</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.barmen_list" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Returns the barman list as list of User.</p>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-544">544</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-545">545</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-546">546</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-547">547</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-548">548</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-549">549</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-544"><a id="__codelineno-0-544" name="__codelineno-0-544"></a><span class="nd">@cached_property</span>
|
||
|
</span><span id="__span-0-545"><a id="__codelineno-0-545" name="__codelineno-0-545"></a><span class="k">def</span> <span class="nf">barmen_list</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-></span> <span class="nb">list</span><span class="p">[</span><span class="n">User</span><span class="p">]:</span>
|
||
|
</span><span id="__span-0-546"><a id="__codelineno-0-546" name="__codelineno-0-546"></a><span class="w"> </span><span class="sd">"""Returns the barman list as list of User."""</span>
|
||
|
</span><span id="__span-0-547"><a id="__codelineno-0-547" name="__codelineno-0-547"></a> <span class="k">return</span> <span class="p">[</span>
|
||
|
</span><span id="__span-0-548"><a id="__codelineno-0-548" name="__codelineno-0-548"></a> <span class="n">p</span><span class="o">.</span><span class="n">user</span> <span class="k">for</span> <span class="n">p</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">permanencies</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">end</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span><span class="o">.</span><span class="n">select_related</span><span class="p">(</span><span class="s2">"user"</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-549"><a id="__codelineno-0-549" name="__codelineno-0-549"></a> <span class="p">]</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.get_random_barman" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">get_random_barman</span><span class="p">()</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.get_random_barman" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Return a random user being currently a barman.</p>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-551">551</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-552">552</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-553">553</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-551"><a id="__codelineno-0-551" name="__codelineno-0-551"></a><span class="k">def</span> <span class="nf">get_random_barman</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-></span> <span class="n">User</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-552"><a id="__codelineno-0-552" name="__codelineno-0-552"></a><span class="w"> </span><span class="sd">"""Return a random user being currently a barman."""</span>
|
||
|
</span><span id="__span-0-553"><a id="__codelineno-0-553" name="__codelineno-0-553"></a> <span class="k">return</span> <span class="n">random</span><span class="o">.</span><span class="n">choice</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">barmen_list</span><span class="p">)</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.update_activity" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">update_activity</span><span class="p">()</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.update_activity" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Update the barman activity to prevent timeout.</p>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-555">555</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-556">556</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-557">557</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-555"><a id="__codelineno-0-555" name="__codelineno-0-555"></a><span class="k">def</span> <span class="nf">update_activity</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-></span> <span class="kc">None</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-556"><a id="__codelineno-0-556" name="__codelineno-0-556"></a><span class="w"> </span><span class="sd">"""Update the barman activity to prevent timeout."""</span>
|
||
|
</span><span id="__span-0-557"><a id="__codelineno-0-557" name="__codelineno-0-557"></a> <span class="bp">self</span><span class="o">.</span><span class="n">permanencies</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">end</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span><span class="o">.</span><span class="n">update</span><span class="p">(</span><span class="n">activity</span><span class="o">=</span><span class="n">timezone</span><span class="o">.</span><span class="n">now</span><span class="p">())</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.can_refill" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">can_refill</span><span class="p">()</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.can_refill" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Show if the counter authorize the refilling with physic money.</p>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-559">559</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-560">560</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-561">561</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-562">562</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-563">563</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-564">564</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-565">565</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-559"><a id="__codelineno-0-559" name="__codelineno-0-559"></a><span class="k">def</span> <span class="nf">can_refill</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-></span> <span class="nb">bool</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-560"><a id="__codelineno-0-560" name="__codelineno-0-560"></a><span class="w"> </span><span class="sd">"""Show if the counter authorize the refilling with physic money."""</span>
|
||
|
</span><span id="__span-0-561"><a id="__codelineno-0-561" name="__codelineno-0-561"></a> <span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">!=</span> <span class="s2">"BAR"</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-562"><a id="__codelineno-0-562" name="__codelineno-0-562"></a> <span class="k">return</span> <span class="kc">False</span>
|
||
|
</span><span id="__span-0-563"><a id="__codelineno-0-563" name="__codelineno-0-563"></a> <span class="c1"># at least one of the barmen is in the AE board</span>
|
||
|
</span><span id="__span-0-564"><a id="__codelineno-0-564" name="__codelineno-0-564"></a> <span class="n">ae</span> <span class="o">=</span> <span class="n">Club</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">unix_name</span><span class="o">=</span><span class="n">SITH_MAIN_CLUB</span><span class="p">[</span><span class="s2">"unix_name"</span><span class="p">])</span>
|
||
|
</span><span id="__span-0-565"><a id="__codelineno-0-565" name="__codelineno-0-565"></a> <span class="k">return</span> <span class="nb">any</span><span class="p">(</span><span class="n">ae</span><span class="o">.</span><span class="n">get_membership_for</span><span class="p">(</span><span class="n">barman</span><span class="p">)</span> <span class="k">for</span> <span class="n">barman</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">barmen_list</span><span class="p">)</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.get_top_barmen" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">get_top_barmen</span><span class="p">()</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.get_top_barmen" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Return a QuerySet querying the office hours stats of all the barmen of all time
|
||
|
of this counter, ordered by descending number of hours.</p>
|
||
|
|
||
|
|
||
|
<details class="each-element-of-the-queryset-corresponds-to-a-barman-and-has-the-following-data-" open>
|
||
|
<summary>Each element of the QuerySet corresponds to a barman and has the following data</summary>
|
||
|
<ul>
|
||
|
<li>the full name (first name + last name) of the barman</li>
|
||
|
<li>the nickname of the barman</li>
|
||
|
<li>the promo of the barman</li>
|
||
|
<li>the total number of office hours the barman did attend</li>
|
||
|
</ul>
|
||
|
</details>
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-567">567</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-568">568</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-569">569</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-570">570</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-571">571</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-572">572</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-573">573</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-574">574</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-575">575</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-576">576</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-577">577</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-578">578</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-579">579</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-580">580</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-581">581</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-582">582</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-583">583</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-584">584</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-585">585</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-586">586</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-587">587</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-588">588</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-567"><a id="__codelineno-0-567" name="__codelineno-0-567"></a><span class="k">def</span> <span class="nf">get_top_barmen</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-></span> <span class="n">QuerySet</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-568"><a id="__codelineno-0-568" name="__codelineno-0-568"></a><span class="w"> </span><span class="sd">"""Return a QuerySet querying the office hours stats of all the barmen of all time</span>
|
||
|
</span><span id="__span-0-569"><a id="__codelineno-0-569" name="__codelineno-0-569"></a><span class="sd"> of this counter, ordered by descending number of hours.</span>
|
||
|
</span><span id="__span-0-570"><a id="__codelineno-0-570" name="__codelineno-0-570"></a>
|
||
|
</span><span id="__span-0-571"><a id="__codelineno-0-571" name="__codelineno-0-571"></a><span class="sd"> Each element of the QuerySet corresponds to a barman and has the following data :</span>
|
||
|
</span><span id="__span-0-572"><a id="__codelineno-0-572" name="__codelineno-0-572"></a><span class="sd"> - the full name (first name + last name) of the barman</span>
|
||
|
</span><span id="__span-0-573"><a id="__codelineno-0-573" name="__codelineno-0-573"></a><span class="sd"> - the nickname of the barman</span>
|
||
|
</span><span id="__span-0-574"><a id="__codelineno-0-574" name="__codelineno-0-574"></a><span class="sd"> - the promo of the barman</span>
|
||
|
</span><span id="__span-0-575"><a id="__codelineno-0-575" name="__codelineno-0-575"></a><span class="sd"> - the total number of office hours the barman did attend</span>
|
||
|
</span><span id="__span-0-576"><a id="__codelineno-0-576" name="__codelineno-0-576"></a><span class="sd"> """</span>
|
||
|
</span><span id="__span-0-577"><a id="__codelineno-0-577" name="__codelineno-0-577"></a> <span class="k">return</span> <span class="p">(</span>
|
||
|
</span><span id="__span-0-578"><a id="__codelineno-0-578" name="__codelineno-0-578"></a> <span class="bp">self</span><span class="o">.</span><span class="n">permanencies</span><span class="o">.</span><span class="n">exclude</span><span class="p">(</span><span class="n">end</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-579"><a id="__codelineno-0-579" name="__codelineno-0-579"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-580"><a id="__codelineno-0-580" name="__codelineno-0-580"></a> <span class="n">name</span><span class="o">=</span><span class="n">Concat</span><span class="p">(</span><span class="n">F</span><span class="p">(</span><span class="s2">"user__first_name"</span><span class="p">),</span> <span class="n">Value</span><span class="p">(</span><span class="s2">" "</span><span class="p">),</span> <span class="n">F</span><span class="p">(</span><span class="s2">"user__last_name"</span><span class="p">))</span>
|
||
|
</span><span id="__span-0-581"><a id="__codelineno-0-581" name="__codelineno-0-581"></a> <span class="p">)</span>
|
||
|
</span><span id="__span-0-582"><a id="__codelineno-0-582" name="__codelineno-0-582"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span><span class="n">nickname</span><span class="o">=</span><span class="n">F</span><span class="p">(</span><span class="s2">"user__nick_name"</span><span class="p">))</span>
|
||
|
</span><span id="__span-0-583"><a id="__codelineno-0-583" name="__codelineno-0-583"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span><span class="n">promo</span><span class="o">=</span><span class="n">F</span><span class="p">(</span><span class="s2">"user__promo"</span><span class="p">))</span>
|
||
|
</span><span id="__span-0-584"><a id="__codelineno-0-584" name="__codelineno-0-584"></a> <span class="o">.</span><span class="n">values</span><span class="p">(</span><span class="s2">"user"</span><span class="p">,</span> <span class="s2">"name"</span><span class="p">,</span> <span class="s2">"nickname"</span><span class="p">,</span> <span class="s2">"promo"</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-585"><a id="__codelineno-0-585" name="__codelineno-0-585"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span><span class="n">perm_sum</span><span class="o">=</span><span class="n">Sum</span><span class="p">(</span><span class="n">F</span><span class="p">(</span><span class="s2">"end"</span><span class="p">)</span> <span class="o">-</span> <span class="n">F</span><span class="p">(</span><span class="s2">"start"</span><span class="p">)))</span>
|
||
|
</span><span id="__span-0-586"><a id="__codelineno-0-586" name="__codelineno-0-586"></a> <span class="o">.</span><span class="n">exclude</span><span class="p">(</span><span class="n">perm_sum</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-587"><a id="__codelineno-0-587" name="__codelineno-0-587"></a> <span class="o">.</span><span class="n">order_by</span><span class="p">(</span><span class="s2">"-perm_sum"</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-588"><a id="__codelineno-0-588" name="__codelineno-0-588"></a> <span class="p">)</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.get_top_customers" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">get_top_customers</span><span class="p">(</span><span class="n">since</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.get_top_customers" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Return a QuerySet querying the money spent by customers of this counter
|
||
|
since the specified date, ordered by descending amount of money spent.</p>
|
||
|
<p>Each element of the QuerySet corresponds to a customer and has the following data :</p>
|
||
|
<ul>
|
||
|
<li>the full name (first name + last name) of the customer</li>
|
||
|
<li>the nickname of the customer</li>
|
||
|
<li>the amount of money spent by the customer</li>
|
||
|
</ul>
|
||
|
|
||
|
|
||
|
<p><span class="doc-section-title">Parameters:</span></p>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Type</th>
|
||
|
<th>Description</th>
|
||
|
<th>Default</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr class="doc-section-item">
|
||
|
<td>
|
||
|
<code>since</code>
|
||
|
</td>
|
||
|
<td>
|
||
|
<code><span title="datetime.datetime">datetime</span> | <span title="datetime.date">date</span> | None</code>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="doc-md-description">
|
||
|
<p>timestamp from which to perform the calculation</p>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td>
|
||
|
<code>None</code>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-590">590</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-591">591</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-592">592</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-593">593</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-594">594</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-595">595</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-596">596</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-597">597</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-598">598</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-599">599</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-600">600</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-601">601</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-602">602</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-603">603</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-604">604</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-605">605</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-606">606</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-607">607</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-608">608</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-609">609</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-610">610</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-611">611</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-612">612</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-613">613</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-614">614</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-615">615</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-616">616</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-617">617</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-618">618</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-619">619</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-620">620</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-621">621</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-622">622</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-623">623</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-624">624</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-625">625</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-626">626</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-627">627</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-590"><a id="__codelineno-0-590" name="__codelineno-0-590"></a><span class="k">def</span> <span class="nf">get_top_customers</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">since</span><span class="p">:</span> <span class="n">datetime</span> <span class="o">|</span> <span class="n">date</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-></span> <span class="n">QuerySet</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-591"><a id="__codelineno-0-591" name="__codelineno-0-591"></a><span class="w"> </span><span class="sd">"""Return a QuerySet querying the money spent by customers of this counter</span>
|
||
|
</span><span id="__span-0-592"><a id="__codelineno-0-592" name="__codelineno-0-592"></a><span class="sd"> since the specified date, ordered by descending amount of money spent.</span>
|
||
|
</span><span id="__span-0-593"><a id="__codelineno-0-593" name="__codelineno-0-593"></a>
|
||
|
</span><span id="__span-0-594"><a id="__codelineno-0-594" name="__codelineno-0-594"></a><span class="sd"> Each element of the QuerySet corresponds to a customer and has the following data :</span>
|
||
|
</span><span id="__span-0-595"><a id="__codelineno-0-595" name="__codelineno-0-595"></a>
|
||
|
</span><span id="__span-0-596"><a id="__codelineno-0-596" name="__codelineno-0-596"></a><span class="sd"> - the full name (first name + last name) of the customer</span>
|
||
|
</span><span id="__span-0-597"><a id="__codelineno-0-597" name="__codelineno-0-597"></a><span class="sd"> - the nickname of the customer</span>
|
||
|
</span><span id="__span-0-598"><a id="__codelineno-0-598" name="__codelineno-0-598"></a><span class="sd"> - the amount of money spent by the customer</span>
|
||
|
</span><span id="__span-0-599"><a id="__codelineno-0-599" name="__codelineno-0-599"></a>
|
||
|
</span><span id="__span-0-600"><a id="__codelineno-0-600" name="__codelineno-0-600"></a><span class="sd"> Args:</span>
|
||
|
</span><span id="__span-0-601"><a id="__codelineno-0-601" name="__codelineno-0-601"></a><span class="sd"> since: timestamp from which to perform the calculation</span>
|
||
|
</span><span id="__span-0-602"><a id="__codelineno-0-602" name="__codelineno-0-602"></a><span class="sd"> """</span>
|
||
|
</span><span id="__span-0-603"><a id="__codelineno-0-603" name="__codelineno-0-603"></a> <span class="k">if</span> <span class="n">since</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-604"><a id="__codelineno-0-604" name="__codelineno-0-604"></a> <span class="n">since</span> <span class="o">=</span> <span class="n">get_start_of_semester</span><span class="p">()</span>
|
||
|
</span><span id="__span-0-605"><a id="__codelineno-0-605" name="__codelineno-0-605"></a> <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">since</span><span class="p">,</span> <span class="n">date</span><span class="p">):</span>
|
||
|
</span><span id="__span-0-606"><a id="__codelineno-0-606" name="__codelineno-0-606"></a> <span class="n">since</span> <span class="o">=</span> <span class="n">datetime</span><span class="p">(</span><span class="n">since</span><span class="o">.</span><span class="n">year</span><span class="p">,</span> <span class="n">since</span><span class="o">.</span><span class="n">month</span><span class="p">,</span> <span class="n">since</span><span class="o">.</span><span class="n">day</span><span class="p">,</span> <span class="n">tzinfo</span><span class="o">=</span><span class="n">tz</span><span class="o">.</span><span class="n">utc</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-607"><a id="__codelineno-0-607" name="__codelineno-0-607"></a> <span class="k">return</span> <span class="p">(</span>
|
||
|
</span><span id="__span-0-608"><a id="__codelineno-0-608" name="__codelineno-0-608"></a> <span class="bp">self</span><span class="o">.</span><span class="n">sellings</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">date__gte</span><span class="o">=</span><span class="n">since</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-609"><a id="__codelineno-0-609" name="__codelineno-0-609"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-610"><a id="__codelineno-0-610" name="__codelineno-0-610"></a> <span class="n">name</span><span class="o">=</span><span class="n">Concat</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-611"><a id="__codelineno-0-611" name="__codelineno-0-611"></a> <span class="n">F</span><span class="p">(</span><span class="s2">"customer__user__first_name"</span><span class="p">),</span>
|
||
|
</span><span id="__span-0-612"><a id="__codelineno-0-612" name="__codelineno-0-612"></a> <span class="n">Value</span><span class="p">(</span><span class="s2">" "</span><span class="p">),</span>
|
||
|
</span><span id="__span-0-613"><a id="__codelineno-0-613" name="__codelineno-0-613"></a> <span class="n">F</span><span class="p">(</span><span class="s2">"customer__user__last_name"</span><span class="p">),</span>
|
||
|
</span><span id="__span-0-614"><a id="__codelineno-0-614" name="__codelineno-0-614"></a> <span class="p">)</span>
|
||
|
</span><span id="__span-0-615"><a id="__codelineno-0-615" name="__codelineno-0-615"></a> <span class="p">)</span>
|
||
|
</span><span id="__span-0-616"><a id="__codelineno-0-616" name="__codelineno-0-616"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span><span class="n">nickname</span><span class="o">=</span><span class="n">F</span><span class="p">(</span><span class="s2">"customer__user__nick_name"</span><span class="p">))</span>
|
||
|
</span><span id="__span-0-617"><a id="__codelineno-0-617" name="__codelineno-0-617"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span><span class="n">promo</span><span class="o">=</span><span class="n">F</span><span class="p">(</span><span class="s2">"customer__user__promo"</span><span class="p">))</span>
|
||
|
</span><span id="__span-0-618"><a id="__codelineno-0-618" name="__codelineno-0-618"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span><span class="n">user</span><span class="o">=</span><span class="n">F</span><span class="p">(</span><span class="s2">"customer__user"</span><span class="p">))</span>
|
||
|
</span><span id="__span-0-619"><a id="__codelineno-0-619" name="__codelineno-0-619"></a> <span class="o">.</span><span class="n">values</span><span class="p">(</span><span class="s2">"user"</span><span class="p">,</span> <span class="s2">"promo"</span><span class="p">,</span> <span class="s2">"name"</span><span class="p">,</span> <span class="s2">"nickname"</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-620"><a id="__codelineno-0-620" name="__codelineno-0-620"></a> <span class="o">.</span><span class="n">annotate</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-621"><a id="__codelineno-0-621" name="__codelineno-0-621"></a> <span class="n">selling_sum</span><span class="o">=</span><span class="n">Sum</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-622"><a id="__codelineno-0-622" name="__codelineno-0-622"></a> <span class="n">F</span><span class="p">(</span><span class="s2">"unit_price"</span><span class="p">)</span> <span class="o">*</span> <span class="n">F</span><span class="p">(</span><span class="s2">"quantity"</span><span class="p">),</span> <span class="n">output_field</span><span class="o">=</span><span class="n">CurrencyField</span><span class="p">()</span>
|
||
|
</span><span id="__span-0-623"><a id="__codelineno-0-623" name="__codelineno-0-623"></a> <span class="p">)</span>
|
||
|
</span><span id="__span-0-624"><a id="__codelineno-0-624" name="__codelineno-0-624"></a> <span class="p">)</span>
|
||
|
</span><span id="__span-0-625"><a id="__codelineno-0-625" name="__codelineno-0-625"></a> <span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">selling_sum__gt</span><span class="o">=</span><span class="mi">0</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-626"><a id="__codelineno-0-626" name="__codelineno-0-626"></a> <span class="o">.</span><span class="n">order_by</span><span class="p">(</span><span class="s2">"-selling_sum"</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-627"><a id="__codelineno-0-627" name="__codelineno-0-627"></a> <span class="p">)</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.get_total_sales" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">get_total_sales</span><span class="p">(</span><span class="n">since</span><span class="o">=</span><span class="kc">None</span><span class="p">)</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.get_total_sales" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Compute and return the total turnover of this counter since the given date.</p>
|
||
|
<p>By default, the date is the start of the current semester.</p>
|
||
|
|
||
|
|
||
|
<p><span class="doc-section-title">Parameters:</span></p>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Name</th>
|
||
|
<th>Type</th>
|
||
|
<th>Description</th>
|
||
|
<th>Default</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr class="doc-section-item">
|
||
|
<td>
|
||
|
<code>since</code>
|
||
|
</td>
|
||
|
<td>
|
||
|
<code><span title="datetime.datetime">datetime</span> | <span title="datetime.date">date</span> | None</code>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="doc-md-description">
|
||
|
<p>timestamp from which to perform the calculation</p>
|
||
|
</div>
|
||
|
</td>
|
||
|
<td>
|
||
|
<code>None</code>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
<p><span class="doc-section-title">Returns:</span></p>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Type</th>
|
||
|
<th>Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr class="doc-section-item">
|
||
|
<td>
|
||
|
<code><a class="autorefs autorefs-internal" title="accounting.models.CurrencyField" href="../../accounting/models/#accounting.models.CurrencyField">CurrencyField</a></code>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="doc-md-description">
|
||
|
<p>Total revenue earned at this counter.</p>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-629">629</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-630">630</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-631">631</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-632">632</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-633">633</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-634">634</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-635">635</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-636">636</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-637">637</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-638">638</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-639">639</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-640">640</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-641">641</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-642">642</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-643">643</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-644">644</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-645">645</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-646">646</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-647">647</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-648">648</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-649">649</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-650">650</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-629"><a id="__codelineno-0-629" name="__codelineno-0-629"></a><span class="k">def</span> <span class="nf">get_total_sales</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">since</span><span class="p">:</span> <span class="n">datetime</span> <span class="o">|</span> <span class="n">date</span> <span class="o">|</span> <span class="kc">None</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-></span> <span class="n">CurrencyField</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-630"><a id="__codelineno-0-630" name="__codelineno-0-630"></a><span class="w"> </span><span class="sd">"""Compute and return the total turnover of this counter since the given date.</span>
|
||
|
</span><span id="__span-0-631"><a id="__codelineno-0-631" name="__codelineno-0-631"></a>
|
||
|
</span><span id="__span-0-632"><a id="__codelineno-0-632" name="__codelineno-0-632"></a><span class="sd"> By default, the date is the start of the current semester.</span>
|
||
|
</span><span id="__span-0-633"><a id="__codelineno-0-633" name="__codelineno-0-633"></a>
|
||
|
</span><span id="__span-0-634"><a id="__codelineno-0-634" name="__codelineno-0-634"></a><span class="sd"> Args:</span>
|
||
|
</span><span id="__span-0-635"><a id="__codelineno-0-635" name="__codelineno-0-635"></a><span class="sd"> since: timestamp from which to perform the calculation</span>
|
||
|
</span><span id="__span-0-636"><a id="__codelineno-0-636" name="__codelineno-0-636"></a>
|
||
|
</span><span id="__span-0-637"><a id="__codelineno-0-637" name="__codelineno-0-637"></a><span class="sd"> Returns:</span>
|
||
|
</span><span id="__span-0-638"><a id="__codelineno-0-638" name="__codelineno-0-638"></a><span class="sd"> Total revenue earned at this counter.</span>
|
||
|
</span><span id="__span-0-639"><a id="__codelineno-0-639" name="__codelineno-0-639"></a><span class="sd"> """</span>
|
||
|
</span><span id="__span-0-640"><a id="__codelineno-0-640" name="__codelineno-0-640"></a> <span class="k">if</span> <span class="n">since</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-641"><a id="__codelineno-0-641" name="__codelineno-0-641"></a> <span class="n">since</span> <span class="o">=</span> <span class="n">get_start_of_semester</span><span class="p">()</span>
|
||
|
</span><span id="__span-0-642"><a id="__codelineno-0-642" name="__codelineno-0-642"></a> <span class="k">if</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">since</span><span class="p">,</span> <span class="n">date</span><span class="p">):</span>
|
||
|
</span><span id="__span-0-643"><a id="__codelineno-0-643" name="__codelineno-0-643"></a> <span class="n">since</span> <span class="o">=</span> <span class="n">datetime</span><span class="p">(</span><span class="n">since</span><span class="o">.</span><span class="n">year</span><span class="p">,</span> <span class="n">since</span><span class="o">.</span><span class="n">month</span><span class="p">,</span> <span class="n">since</span><span class="o">.</span><span class="n">day</span><span class="p">,</span> <span class="n">tzinfo</span><span class="o">=</span><span class="n">tz</span><span class="o">.</span><span class="n">utc</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-644"><a id="__codelineno-0-644" name="__codelineno-0-644"></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">sellings</span><span class="o">.</span><span class="n">filter</span><span class="p">(</span><span class="n">date__gte</span><span class="o">=</span><span class="n">since</span><span class="p">)</span><span class="o">.</span><span class="n">aggregate</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-645"><a id="__codelineno-0-645" name="__codelineno-0-645"></a> <span class="n">total</span><span class="o">=</span><span class="n">Sum</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-646"><a id="__codelineno-0-646" name="__codelineno-0-646"></a> <span class="n">F</span><span class="p">(</span><span class="s2">"quantity"</span><span class="p">)</span> <span class="o">*</span> <span class="n">F</span><span class="p">(</span><span class="s2">"unit_price"</span><span class="p">),</span>
|
||
|
</span><span id="__span-0-647"><a id="__codelineno-0-647" name="__codelineno-0-647"></a> <span class="n">default</span><span class="o">=</span><span class="mi">0</span><span class="p">,</span>
|
||
|
</span><span id="__span-0-648"><a id="__codelineno-0-648" name="__codelineno-0-648"></a> <span class="n">output_field</span><span class="o">=</span><span class="n">CurrencyField</span><span class="p">(),</span>
|
||
|
</span><span id="__span-0-649"><a id="__codelineno-0-649" name="__codelineno-0-649"></a> <span class="p">)</span>
|
||
|
</span><span id="__span-0-650"><a id="__codelineno-0-650" name="__codelineno-0-650"></a> <span class="p">)[</span><span class="s2">"total"</span><span class="p">]</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Counter.customer_is_barman" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">customer_is_barman</span><span class="p">(</span><span class="n">customer</span><span class="p">)</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Counter.customer_is_barman" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Check if this counter is a <code>bar</code> and if the customer is currently logged in.
|
||
|
This is useful to compute special prices.</p>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-652">652</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-653">653</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-654">654</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-655">655</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-656">656</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-657">657</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-658">658</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-652"><a id="__codelineno-0-652" name="__codelineno-0-652"></a><span class="k">def</span> <span class="nf">customer_is_barman</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">customer</span><span class="p">:</span> <span class="n">Customer</span> <span class="o">|</span> <span class="n">User</span><span class="p">)</span> <span class="o">-></span> <span class="nb">bool</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-653"><a id="__codelineno-0-653" name="__codelineno-0-653"></a><span class="w"> </span><span class="sd">"""Check if this counter is a `bar` and if the customer is currently logged in.</span>
|
||
|
</span><span id="__span-0-654"><a id="__codelineno-0-654" name="__codelineno-0-654"></a><span class="sd"> This is useful to compute special prices."""</span>
|
||
|
</span><span id="__span-0-655"><a id="__codelineno-0-655" name="__codelineno-0-655"></a>
|
||
|
</span><span id="__span-0-656"><a id="__codelineno-0-656" name="__codelineno-0-656"></a> <span class="c1"># Customer and User are two different tables,</span>
|
||
|
</span><span id="__span-0-657"><a id="__codelineno-0-657" name="__codelineno-0-657"></a> <span class="c1"># but they share the same primary key</span>
|
||
|
</span><span id="__span-0-658"><a id="__codelineno-0-658" name="__codelineno-0-658"></a> <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">type</span> <span class="o">==</span> <span class="s2">"BAR"</span> <span class="ow">and</span> <span class="nb">any</span><span class="p">(</span><span class="n">b</span><span class="o">.</span><span class="n">pk</span> <span class="o">==</span> <span class="n">customer</span><span class="o">.</span><span class="n">pk</span> <span class="k">for</span> <span class="n">b</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">barmen_list</span><span class="p">)</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.Product" class="doc doc-heading">
|
||
|
<code>Product</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.Product" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="django.db.models.Model">Model</span></code></p>
|
||
|
|
||
|
|
||
|
<p>A product, with all its related information.</p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Product.is_owned_by" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">is_owned_by</span><span class="p">(</span><span class="n">user</span><span class="p">)</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Product.is_owned_by" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Method to see if that object can be edited by the given user.</p>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-385">385</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-386">386</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-387">387</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-388">388</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-389">389</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-390">390</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-391">391</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-385"><a id="__codelineno-0-385" name="__codelineno-0-385"></a><span class="k">def</span> <span class="nf">is_owned_by</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">user</span><span class="p">):</span>
|
||
|
</span><span id="__span-0-386"><a id="__codelineno-0-386" name="__codelineno-0-386"></a><span class="w"> </span><span class="sd">"""Method to see if that object can be edited by the given user."""</span>
|
||
|
</span><span id="__span-0-387"><a id="__codelineno-0-387" name="__codelineno-0-387"></a> <span class="k">if</span> <span class="n">user</span><span class="o">.</span><span class="n">is_anonymous</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-388"><a id="__codelineno-0-388" name="__codelineno-0-388"></a> <span class="k">return</span> <span class="kc">False</span>
|
||
|
</span><span id="__span-0-389"><a id="__codelineno-0-389" name="__codelineno-0-389"></a> <span class="k">return</span> <span class="n">user</span><span class="o">.</span><span class="n">is_in_group</span><span class="p">(</span>
|
||
|
</span><span id="__span-0-390"><a id="__codelineno-0-390" name="__codelineno-0-390"></a> <span class="n">pk</span><span class="o">=</span><span class="n">settings</span><span class="o">.</span><span class="n">SITH_GROUP_ACCOUNTING_ADMIN_ID</span>
|
||
|
</span><span id="__span-0-391"><a id="__codelineno-0-391" name="__codelineno-0-391"></a> <span class="p">)</span> <span class="ow">or</span> <span class="n">user</span><span class="o">.</span><span class="n">is_in_group</span><span class="p">(</span><span class="n">pk</span><span class="o">=</span><span class="n">settings</span><span class="o">.</span><span class="n">SITH_GROUP_COUNTER_ADMIN_ID</span><span class="p">)</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.Product.can_be_sold_to" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">can_be_sold_to</span><span class="p">(</span><span class="n">user</span><span class="p">)</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.Product.can_be_sold_to" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Check if whether the user given in parameter has the right to buy
|
||
|
this product or not.</p>
|
||
|
<p>This must be not confused with the Customer.can_buy()
|
||
|
method as the present method returns an information
|
||
|
about the relation between a User and a Product,
|
||
|
whereas the other tells something about a Customer
|
||
|
(and not a user, they are not the same model).</p>
|
||
|
|
||
|
|
||
|
<p><span class="doc-section-title">Returns:</span></p>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th>Type</th>
|
||
|
<th>Description</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<tr class="doc-section-item">
|
||
|
<td>
|
||
|
<code>bool</code>
|
||
|
</td>
|
||
|
<td>
|
||
|
<div class="doc-md-description">
|
||
|
<p>True if the user can buy this product else False</p>
|
||
|
</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
|
||
|
<details class="warning" open>
|
||
|
<summary>Warning</summary>
|
||
|
<p>This performs a db query, thus you can quickly have
|
||
|
a N+1 queries problem if you call it in a loop.
|
||
|
Hopefully, you can avoid that if you prefetch the buying_groups :</p>
|
||
|
<div class="language-python highlight"><pre><span></span><code><span id="__span-0-1"><a id="__codelineno-0-1" name="__codelineno-0-1" href="#__codelineno-0-1"></a><span class="n">user</span> <span class="o">=</span> <span class="n">User</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="n">username</span><span class="o">=</span><span class="s2">"foobar"</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-2"><a id="__codelineno-0-2" name="__codelineno-0-2" href="#__codelineno-0-2"></a><span class="n">products</span> <span class="o">=</span> <span class="p">[</span>
|
||
|
</span><span id="__span-0-3"><a id="__codelineno-0-3" name="__codelineno-0-3" href="#__codelineno-0-3"></a> <span class="n">p</span>
|
||
|
</span><span id="__span-0-4"><a id="__codelineno-0-4" name="__codelineno-0-4" href="#__codelineno-0-4"></a> <span class="k">for</span> <span class="n">p</span> <span class="ow">in</span> <span class="n">Product</span><span class="o">.</span><span class="n">objects</span><span class="o">.</span><span class="n">prefetch_related</span><span class="p">(</span><span class="s2">"buying_groups"</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-5"><a id="__codelineno-0-5" name="__codelineno-0-5" href="#__codelineno-0-5"></a> <span class="k">if</span> <span class="n">p</span><span class="o">.</span><span class="n">can_be_sold_to</span><span class="p">(</span><span class="n">user</span><span class="p">)</span>
|
||
|
</span><span id="__span-0-6"><a id="__codelineno-0-6" name="__codelineno-0-6" href="#__codelineno-0-6"></a><span class="p">]</span>
|
||
|
</span></code></pre></div>
|
||
|
</details>
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-393">393</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-394">394</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-395">395</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-396">396</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-397">397</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-398">398</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-399">399</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-400">400</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-401">401</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-402">402</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-403">403</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-404">404</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-405">405</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-406">406</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-407">407</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-408">408</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-409">409</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-410">410</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-411">411</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-412">412</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-413">413</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-414">414</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-415">415</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-416">416</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-417">417</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-418">418</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-419">419</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-420">420</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-421">421</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-422">422</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-423">423</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-393"><a id="__codelineno-0-393" name="__codelineno-0-393"></a><span class="k">def</span> <span class="nf">can_be_sold_to</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">user</span><span class="p">:</span> <span class="n">User</span><span class="p">)</span> <span class="o">-></span> <span class="nb">bool</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-394"><a id="__codelineno-0-394" name="__codelineno-0-394"></a><span class="w"> </span><span class="sd">"""Check if whether the user given in parameter has the right to buy</span>
|
||
|
</span><span id="__span-0-395"><a id="__codelineno-0-395" name="__codelineno-0-395"></a><span class="sd"> this product or not.</span>
|
||
|
</span><span id="__span-0-396"><a id="__codelineno-0-396" name="__codelineno-0-396"></a>
|
||
|
</span><span id="__span-0-397"><a id="__codelineno-0-397" name="__codelineno-0-397"></a><span class="sd"> This must be not confused with the Customer.can_buy()</span>
|
||
|
</span><span id="__span-0-398"><a id="__codelineno-0-398" name="__codelineno-0-398"></a><span class="sd"> method as the present method returns an information</span>
|
||
|
</span><span id="__span-0-399"><a id="__codelineno-0-399" name="__codelineno-0-399"></a><span class="sd"> about the relation between a User and a Product,</span>
|
||
|
</span><span id="__span-0-400"><a id="__codelineno-0-400" name="__codelineno-0-400"></a><span class="sd"> whereas the other tells something about a Customer</span>
|
||
|
</span><span id="__span-0-401"><a id="__codelineno-0-401" name="__codelineno-0-401"></a><span class="sd"> (and not a user, they are not the same model).</span>
|
||
|
</span><span id="__span-0-402"><a id="__codelineno-0-402" name="__codelineno-0-402"></a>
|
||
|
</span><span id="__span-0-403"><a id="__codelineno-0-403" name="__codelineno-0-403"></a><span class="sd"> Returns:</span>
|
||
|
</span><span id="__span-0-404"><a id="__codelineno-0-404" name="__codelineno-0-404"></a><span class="sd"> True if the user can buy this product else False</span>
|
||
|
</span><span id="__span-0-405"><a id="__codelineno-0-405" name="__codelineno-0-405"></a>
|
||
|
</span><span id="__span-0-406"><a id="__codelineno-0-406" name="__codelineno-0-406"></a><span class="sd"> Warning:</span>
|
||
|
</span><span id="__span-0-407"><a id="__codelineno-0-407" name="__codelineno-0-407"></a><span class="sd"> This performs a db query, thus you can quickly have</span>
|
||
|
</span><span id="__span-0-408"><a id="__codelineno-0-408" name="__codelineno-0-408"></a><span class="sd"> a N+1 queries problem if you call it in a loop.</span>
|
||
|
</span><span id="__span-0-409"><a id="__codelineno-0-409" name="__codelineno-0-409"></a><span class="sd"> Hopefully, you can avoid that if you prefetch the buying_groups :</span>
|
||
|
</span><span id="__span-0-410"><a id="__codelineno-0-410" name="__codelineno-0-410"></a>
|
||
|
</span><span id="__span-0-411"><a id="__codelineno-0-411" name="__codelineno-0-411"></a><span class="sd"> ```python</span>
|
||
|
</span><span id="__span-0-412"><a id="__codelineno-0-412" name="__codelineno-0-412"></a><span class="sd"> user = User.objects.get(username="foobar")</span>
|
||
|
</span><span id="__span-0-413"><a id="__codelineno-0-413" name="__codelineno-0-413"></a><span class="sd"> products = [</span>
|
||
|
</span><span id="__span-0-414"><a id="__codelineno-0-414" name="__codelineno-0-414"></a><span class="sd"> p</span>
|
||
|
</span><span id="__span-0-415"><a id="__codelineno-0-415" name="__codelineno-0-415"></a><span class="sd"> for p in Product.objects.prefetch_related("buying_groups")</span>
|
||
|
</span><span id="__span-0-416"><a id="__codelineno-0-416" name="__codelineno-0-416"></a><span class="sd"> if p.can_be_sold_to(user)</span>
|
||
|
</span><span id="__span-0-417"><a id="__codelineno-0-417" name="__codelineno-0-417"></a><span class="sd"> ]</span>
|
||
|
</span><span id="__span-0-418"><a id="__codelineno-0-418" name="__codelineno-0-418"></a><span class="sd"> ```</span>
|
||
|
</span><span id="__span-0-419"><a id="__codelineno-0-419" name="__codelineno-0-419"></a><span class="sd"> """</span>
|
||
|
</span><span id="__span-0-420"><a id="__codelineno-0-420" name="__codelineno-0-420"></a> <span class="n">buying_groups</span> <span class="o">=</span> <span class="nb">list</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">buying_groups</span><span class="o">.</span><span class="n">all</span><span class="p">())</span>
|
||
|
</span><span id="__span-0-421"><a id="__codelineno-0-421" name="__codelineno-0-421"></a> <span class="k">if</span> <span class="ow">not</span> <span class="n">buying_groups</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-422"><a id="__codelineno-0-422" name="__codelineno-0-422"></a> <span class="k">return</span> <span class="kc">True</span>
|
||
|
</span><span id="__span-0-423"><a id="__codelineno-0-423" name="__codelineno-0-423"></a> <span class="k">return</span> <span class="nb">any</span><span class="p">(</span><span class="n">user</span><span class="o">.</span><span class="n">is_in_group</span><span class="p">(</span><span class="n">pk</span><span class="o">=</span><span class="n">group</span><span class="o">.</span><span class="n">id</span><span class="p">)</span> <span class="k">for</span> <span class="n">group</span> <span class="ow">in</span> <span class="n">buying_groups</span><span class="p">)</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.ProductType" class="doc doc-heading">
|
||
|
<code>ProductType</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.ProductType" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ordered_model.models.OrderedModel">OrderedModel</span></code></p>
|
||
|
|
||
|
|
||
|
<p>A product type.</p>
|
||
|
<p>Useful only for categorizing.</p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-object doc-function">
|
||
|
|
||
|
|
||
|
<h3 id="counter.schemas.ProductType.is_owned_by" class="doc doc-heading">
|
||
|
<code class="highlight language-python"><span class="n">is_owned_by</span><span class="p">(</span><span class="n">user</span><span class="p">)</span></code>
|
||
|
|
||
|
<a href="#counter.schemas.ProductType.is_owned_by" class="headerlink" title="Permanent link">¶</a></h3>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
|
||
|
<p>Method to see if that object can be edited by the given user.</p>
|
||
|
|
||
|
<details class="quote">
|
||
|
<summary>Source code in <code>counter/models.py</code></summary>
|
||
|
<div class="language-python highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span></span><span class="normal"><a href="#__codelineno-0-320">320</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-321">321</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-322">322</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-323">323</a></span>
|
||
|
<span class="normal"><a href="#__codelineno-0-324">324</a></span></pre></div></td><td class="code"><div><pre><span></span><code><span id="__span-0-320"><a id="__codelineno-0-320" name="__codelineno-0-320"></a><span class="k">def</span> <span class="nf">is_owned_by</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">user</span><span class="p">):</span>
|
||
|
</span><span id="__span-0-321"><a id="__codelineno-0-321" name="__codelineno-0-321"></a><span class="w"> </span><span class="sd">"""Method to see if that object can be edited by the given user."""</span>
|
||
|
</span><span id="__span-0-322"><a id="__codelineno-0-322" name="__codelineno-0-322"></a> <span class="k">if</span> <span class="n">user</span><span class="o">.</span><span class="n">is_anonymous</span><span class="p">:</span>
|
||
|
</span><span id="__span-0-323"><a id="__codelineno-0-323" name="__codelineno-0-323"></a> <span class="k">return</span> <span class="kc">False</span>
|
||
|
</span><span id="__span-0-324"><a id="__codelineno-0-324" name="__codelineno-0-324"></a> <span class="k">return</span> <span class="n">user</span><span class="o">.</span><span class="n">is_in_group</span><span class="p">(</span><span class="n">pk</span><span class="o">=</span><span class="n">settings</span><span class="o">.</span><span class="n">SITH_GROUP_ACCOUNTING_ADMIN_ID</span><span class="p">)</span>
|
||
|
</span></code></pre></div></td></tr></table></div>
|
||
|
</details>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.CounterSchema" class="doc doc-heading">
|
||
|
<code>CounterSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.CounterSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.CounterFilterSchema" class="doc doc-heading">
|
||
|
<code>CounterFilterSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.CounterFilterSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.FilterSchema">FilterSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.SimplifiedCounterSchema" class="doc doc-heading">
|
||
|
<code>SimplifiedCounterSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.SimplifiedCounterSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.ProductTypeSchema" class="doc doc-heading">
|
||
|
<code>ProductTypeSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.ProductTypeSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.SimpleProductTypeSchema" class="doc doc-heading">
|
||
|
<code>SimpleProductTypeSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.SimpleProductTypeSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.ReorderProductTypeSchema" class="doc doc-heading">
|
||
|
<code>ReorderProductTypeSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.ReorderProductTypeSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.Schema">Schema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.SimpleProductSchema" class="doc doc-heading">
|
||
|
<code>SimpleProductSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.SimpleProductSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.ProductSchema" class="doc doc-heading">
|
||
|
<code>ProductSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.ProductSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.ModelSchema">ModelSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
<div class="doc doc-object doc-class">
|
||
|
|
||
|
|
||
|
|
||
|
<h2 id="counter.schemas.ProductFilterSchema" class="doc doc-heading">
|
||
|
<code>ProductFilterSchema</code>
|
||
|
|
||
|
|
||
|
<a href="#counter.schemas.ProductFilterSchema" class="headerlink" title="Permanent link">¶</a></h2>
|
||
|
|
||
|
|
||
|
<div class="doc doc-contents ">
|
||
|
<p class="doc doc-class-bases">
|
||
|
Bases: <code><span title="ninja.FilterSchema">FilterSchema</span></code></p>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<div class="doc doc-children">
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</article>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<script>var tabs=__md_get("__tabs");if(Array.isArray(tabs))e:for(var set of document.querySelectorAll(".tabbed-set")){var labels=set.querySelector(".tabbed-labels");for(var tab of tabs)for(var label of labels.getElementsByTagName("label"))if(label.innerText.trim()===tab){var input=document.getElementById(label.htmlFor);input.checked=!0;continue e}}</script>
|
||
|
|
||
|
<script>var target=document.getElementById(location.hash.slice(1));target&&target.name&&(target.checked=target.name.startsWith("__tabbed_"))</script>
|
||
|
</div>
|
||
|
|
||
|
</main>
|
||
|
|
||
|
<footer class="md-footer">
|
||
|
|
||
|
|
||
|
|
||
|
<nav class="md-footer__inner md-grid" aria-label="Pied de page" >
|
||
|
|
||
|
|
||
|
<a href="../views/" class="md-footer__link md-footer__link--prev" aria-label="Précédent: Views">
|
||
|
<div class="md-footer__button md-icon">
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 11v2H8l5.5 5.5-1.42 1.42L4.16 12l7.92-7.92L13.5 5.5 8 11z"/></svg>
|
||
|
</div>
|
||
|
<div class="md-footer__title">
|
||
|
<span class="md-footer__direction">
|
||
|
Précédent
|
||
|
</span>
|
||
|
<div class="md-ellipsis">
|
||
|
Views
|
||
|
</div>
|
||
|
</div>
|
||
|
</a>
|
||
|
|
||
|
|
||
|
|
||
|
<a href="../../eboutic/models/" class="md-footer__link md-footer__link--next" aria-label="Suivant: Models">
|
||
|
<div class="md-footer__title">
|
||
|
<span class="md-footer__direction">
|
||
|
Suivant
|
||
|
</span>
|
||
|
<div class="md-ellipsis">
|
||
|
Models
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="md-footer__button md-icon">
|
||
|
|
||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 11v2h12l-5.5 5.5 1.42 1.42L19.84 12l-7.92-7.92L10.5 5.5 16 11z"/></svg>
|
||
|
</div>
|
||
|
</a>
|
||
|
|
||
|
</nav>
|
||
|
|
||
|
|
||
|
<div class="md-footer-meta md-typeset">
|
||
|
<div class="md-footer-meta__inner md-grid">
|
||
|
<div class="md-copyright">
|
||
|
|
||
|
|
||
|
Made with
|
||
|
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
|
||
|
Material for MkDocs
|
||
|
</a>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</footer>
|
||
|
|
||
|
</div>
|
||
|
<div class="md-dialog" data-md-component="dialog">
|
||
|
<div class="md-dialog__inner md-typeset"></div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<script id="__config" type="application/json">{"base": "../../..", "features": ["navigation.footer", "content.code.annotate", "content.code.copy", "content.tabs.link"], "search": "../../../assets/javascripts/workers/search.6ce7567c.min.js", "translations": {"clipboard.copied": "Copi\u00e9 dans le presse-papier", "clipboard.copy": "Copier dans le presse-papier", "search.result.more.one": "1 de plus sur cette page", "search.result.more.other": "# de plus sur cette page", "search.result.none": "Aucun document trouv\u00e9", "search.result.one": "1 document trouv\u00e9", "search.result.other": "# documents trouv\u00e9s", "search.result.placeholder": "Taper pour d\u00e9marrer la recherche", "search.result.term.missing": "Non trouv\u00e9", "select.version": "S\u00e9lectionner la version"}}</script>
|
||
|
|
||
|
|
||
|
<script src="../../../assets/javascripts/bundle.83f73b43.min.js"></script>
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|