Registered model to admin and made changes

This commit is contained in:
2024-10-18 11:57:01 +02:00
parent 932b36c530
commit c416758e82
3 changed files with 20 additions and 1 deletions

View File

@@ -1,3 +1,5 @@
from django.contrib import admin
from .models import Part
# Register your models here.
admin.site.register(Part)

View File

@@ -0,0 +1,17 @@
# Generated by Django 5.1.2 on 2024-10-18 09:55
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('catops', '0001_initial'),
]
operations = [
migrations.RenameModel(
old_name='Parts',
new_name='Part',
),
]

View File

@@ -3,6 +3,6 @@ from django.db import models
# Create your models here.
# These models represent the actual data structure organization of the storage.
class Parts(models.Model):
class Part(models.Model):
id = models.UUIDField(primary_key=True)