Don't show "in Umsetzung" labels, add demo user
This commit is contained in:
parent
fc4bda0895
commit
6254e63d01
|
|
@ -9,6 +9,7 @@ const props = defineProps<{
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
|
v-if="props.learningContentType !== 'placeholder'"
|
||||||
class="flex bg-gray-200 rounded-full px-2.5 py-0.5 gap-2 items-center w-min h-min"
|
class="flex bg-gray-200 rounded-full px-2.5 py-0.5 gap-2 items-center w-min h-min"
|
||||||
>
|
>
|
||||||
<component
|
<component
|
||||||
|
|
|
||||||
|
|
@ -99,6 +99,14 @@ def create_default_users(user_model=User, group_model=Group, default_password=No
|
||||||
password="myvbv1234",
|
password="myvbv1234",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
_create_student_user(
|
||||||
|
email="bianca.musterfrau@vbv-afa.ch",
|
||||||
|
first_name="Bianca",
|
||||||
|
last_name="Musterfrau",
|
||||||
|
avatar_url="/static/avatars/avatar_bianca.png",
|
||||||
|
password="myvbv1234",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _get_or_create_user(user_model, *args, **kwargs):
|
def _get_or_create_user(user_model, *args, **kwargs):
|
||||||
username = kwargs.get("username", None)
|
username = kwargs.get("username", None)
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 377 KiB |
Loading…
Reference in New Issue