From 0b84f73cbf5c37c0de786c4b8684df80e28183d5 Mon Sep 17 00:00:00 2001 From: Jochen Mehlich Date: Tue, 3 Sep 2024 16:30:04 +0200 Subject: [PATCH] model renaming applied Signed-off-by: Jochen Mehlich --- ...ename_quote_person_group_quotepersongroup.py | 17 +++++++++++++++++ person/models.py | 2 +- quote/__init__.py | 0 quote/admin.py | 3 +++ quote/apps.py | 6 ++++++ quote/migrations/__init__.py | 0 quote/models.py | 3 +++ quote/tests.py | 3 +++ quote/views.py | 3 +++ 9 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 person/migrations/0002_rename_quote_person_group_quotepersongroup.py create mode 100644 quote/__init__.py create mode 100644 quote/admin.py create mode 100644 quote/apps.py create mode 100644 quote/migrations/__init__.py create mode 100644 quote/models.py create mode 100644 quote/tests.py create mode 100644 quote/views.py diff --git a/person/migrations/0002_rename_quote_person_group_quotepersongroup.py b/person/migrations/0002_rename_quote_person_group_quotepersongroup.py new file mode 100644 index 0000000..464d0cf --- /dev/null +++ b/person/migrations/0002_rename_quote_person_group_quotepersongroup.py @@ -0,0 +1,17 @@ +# Generated by Django 5.1 on 2024-09-03 14:29 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('person', '0001_initial'), + ] + + operations = [ + migrations.RenameModel( + old_name='quote_person_group', + new_name='QuotePersonGroup', + ), + ] diff --git a/person/models.py b/person/models.py index 0e76761..91e15d5 100644 --- a/person/models.py +++ b/person/models.py @@ -1,7 +1,7 @@ from django.db import models import uuid # Create your models here. -class quote_person_group(models.Model): +class QuotePersonGroup(models.Model): label = models.CharField(max_length=255, null=False, unique=False) id = models.UUIDField(default=uuid.uuid4, editable = False, primary_key = True, unique = True) description = models.TextField(null=True) \ No newline at end of file diff --git a/quote/__init__.py b/quote/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/quote/admin.py b/quote/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/quote/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/quote/apps.py b/quote/apps.py new file mode 100644 index 0000000..cae49ed --- /dev/null +++ b/quote/apps.py @@ -0,0 +1,6 @@ +from django.apps import AppConfig + + +class QuoteConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'quote' diff --git a/quote/migrations/__init__.py b/quote/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/quote/models.py b/quote/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/quote/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/quote/tests.py b/quote/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/quote/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/quote/views.py b/quote/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/quote/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here.