Register model to admin panel

This commit is contained in:
Ethanell 2021-12-03 03:40:41 +01:00
parent d587904138
commit 0e0016382c
7 changed files with 24 additions and 4 deletions

View file

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

View file

@ -8,3 +8,6 @@ class Crew(Model):
members = ManyToManyField(People)
description = TextField()
def __str__(self):
return self.name

View file

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

View file

@ -3,3 +3,6 @@ from django.db.models import Model, TextField
class ThomasPesquetQuotes(Model):
text = TextField()
def __str__(self):
return self.text

View file

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

View file

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

View file

@ -19,3 +19,6 @@ class Rescue(Model):
description = QuillField()
sources = QuillField()
def __str__(self):
return self.name