Commit 0837bd1e authored by Chino Tesoro's avatar Chino Tesoro

added forum updates and fixed pycache i guess

parents 3a589e4c b8107f5d
from django.contrib import admin
# Register your models here.
from .models import WidgetUser
class WidgetUserAdmin(admin.ModelAdmin):
model = WidgetUser
admin.site.register(WidgetUser)
\ No newline at end of file
# Generated by Django 4.0.3 on 2022-03-23 06:44
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=15)),
('middle_name', models.CharField(max_length=15)),
('last_name', models.CharField(max_length=15)),
],
),
]
from django.db import models
# Create your models here.
class WidgetUser(models.Model):
first_name = models.CharField(max_length=15)
middle_name = models.CharField(max_length=15)
last_name = models.CharField(max_length=15)
def __str__(self):
return '{} {}'.format(self.first_name, self.last_name)
\ No newline at end of file
......@@ -42,7 +42,7 @@ INSTALLED_APPS = [
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'homepage',
'homepage.apps.HomepageConfig',
'assignments',
'forum',
'announcements',
......
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