Registered model to admin and made changes
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from django.contrib import admin
|
||||
from .models import Part
|
||||
|
||||
# Register your models here.
|
||||
admin.site.register(Part)
|
||||
|
||||
17
techdb/catops/migrations/0002_rename_parts_part.py
Normal file
17
techdb/catops/migrations/0002_rename_parts_part.py
Normal 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',
|
||||
),
|
||||
]
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user