add fallback app and team member model

pull/1/head
Florian Sorg 2 years ago
parent b93a4fee82
commit d9e7a42260

@ -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

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

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

@ -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)),
],
),
]

@ -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}"

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

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

@ -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",

Loading…
Cancel
Save