Register model to admin panel
This commit is contained in:
parent
d587904138
commit
0e0016382c
7 changed files with 24 additions and 4 deletions
|
@ -1,3 +1,6 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from crew.models import Crew
|
||||
|
||||
|
||||
admin.site.register(Crew)
|
||||
|
|
|
@ -8,3 +8,6 @@ class Crew(Model):
|
|||
members = ManyToManyField(People)
|
||||
|
||||
description = TextField()
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from error.models import ThomasPesquetQuotes
|
||||
|
||||
|
||||
admin.site.register(ThomasPesquetQuotes)
|
||||
|
|
|
@ -3,3 +3,6 @@ from django.db.models import Model, TextField
|
|||
|
||||
class ThomasPesquetQuotes(Model):
|
||||
text = TextField()
|
||||
|
||||
def __str__(self):
|
||||
return self.text
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from people.models import People
|
||||
|
||||
admin.site.register(People)
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
from rescue.models import Rescue
|
||||
|
||||
|
||||
admin.site.register(Rescue)
|
||||
|
|
|
@ -19,3 +19,6 @@ class Rescue(Model):
|
|||
description = QuillField()
|
||||
|
||||
sources = QuillField()
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Reference in a new issue