1
0
mirror of https://github.com/ae-utbm/sith.git synced 2025-07-25 11:19:57 +00:00
Files
.github
accounting
antispam
club
com
core
counter
docs
eboutic
election
forum
galaxy
launderette
locale
matmat
pedagogy
rootplace
sas
migrations
static
templates
tests
widgets
__init__.py
admin.py
api.py
baker_recipes.py
forms.py
models.py
schemas.py
urls.py
views.py
sith
staticfiles
subscription
trombi
.coveragerc
.env.example
.envrc
.gitattributes
.gitignore
.mailmap
.npmrc
.pre-commit-config.yaml
.python-version
CONTRIBUTING.rst
LICENSE
Procfile.service
Procfile.static
README.md
biome.json
conftest.py
manage.py
mkdocs.yml
openapi-csrf.ts
openapi-ts.config.ts
package-lock.json
package.json
pyproject.toml
tsconfig.json
uv.lock
vite.config.mts
Sith/sas/baker_recipes.py
2024-08-10 00:46:40 +02:00

19 lines
375 B
Python

from model_bakery import seq
from model_bakery.recipe import Recipe
from sas.models import Picture
picture_recipe = Recipe(
Picture,
is_in_sas=True,
is_folder=False,
is_moderated=True,
name=seq("Picture "),
)
"""A SAS Picture fixture.
Warnings:
If you don't `bulk_create` this, you need
to explicitly set the parent album, or it won't work
"""