2
0
Fork 0

add fallback app and team member model

This commit is contained in:
Florian Sorg 2023-05-06 22:42:53 +02:00
parent b93a4fee82
commit d9e7a42260
10 changed files with 53 additions and 0 deletions

View File

@ -64,6 +64,7 @@ class EnableRegistration(types.BooleanPreference):
name = "enable_registration" name = "enable_registration"
default = True default = True
@global_preferences_registry.register @global_preferences_registry.register
class EnableAsta(types.BooleanPreference): class EnableAsta(types.BooleanPreference):
section = helper section = helper

View File

View File

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View File

@ -0,0 +1,6 @@
from django.apps import AppConfig
class FallbackConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "shiftregister.fallback"

View File

@ -0,0 +1,27 @@
# Generated by Django 4.0.4 on 2023-05-06 20:40
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="TeamMember",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("name", models.CharField(max_length=100)),
],
),
]

View File

@ -0,0 +1,9 @@
from django.db import models
from shiftregister.app.models import *
class TeamMember(models.Model):
name = models.CharField(max_length=100)
def __str__(self):
return f"{self.name}"

View File

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View File

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.

View File

@ -41,6 +41,7 @@ INSTALLED_APPS = [
"dynamic_preferences", "dynamic_preferences",
"shiftregister.app.apps.AppConfig", "shiftregister.app.apps.AppConfig",
"shiftregister.core.apps.CoreConfig", "shiftregister.core.apps.CoreConfig",
"shiftregister.fallback.apps.FallbackConfig",
"shiftregister.importer.apps.ImporterConfig", "shiftregister.importer.apps.ImporterConfig",
"shiftregister.metrics.apps.MetricsConfig", "shiftregister.metrics.apps.MetricsConfig",
"shiftregister.pages.apps.PagesConfig", "shiftregister.pages.apps.PagesConfig",