Commit 71b255c1 authored by Chester Tan's avatar Chester Tan
parents cb70bc86 448faa42
from django.contrib import admin from django.contrib import admin
# Register your models here. from .models import WidgetUser
class WidgetUserAdmin(admin.ModelAdmin):
model = WidgetUser
admin.site.register(WidgetUser, WidgetUserAdmin)
# Generated by Django 4.0.3 on 2022-03-22 03:09
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='WidgetUser',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('first_name', models.CharField(max_length=30)),
('middle_name', models.CharField(max_length=30)),
('last_name', models.CharField(max_length=30)),
],
),
]
from django.db import models from django.db import models
# Create your models here. class WidgetUser(models.Model):
first_name = models.CharField(max_length=30)
middle_name = models.CharField(max_length=30)
last_name = models.CharField(max_length=30)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment