Initial commit
This commit is contained in:
commit
8f112c1bb5
69 changed files with 2068 additions and 0 deletions
0
web/lazaro_quotes/__init__.py
Normal file
0
web/lazaro_quotes/__init__.py
Normal file
3
web/lazaro_quotes/admin.py
Normal file
3
web/lazaro_quotes/admin.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
6
web/lazaro_quotes/apps.py
Normal file
6
web/lazaro_quotes/apps.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
from django.apps import AppConfig
|
||||
|
||||
|
||||
class LazaroQuotesConfig(AppConfig):
|
||||
default_auto_field = 'django.db.models.BigAutoField'
|
||||
name = 'lazaro_quotes'
|
0
web/lazaro_quotes/migrations/__init__.py
Normal file
0
web/lazaro_quotes/migrations/__init__.py
Normal file
13
web/lazaro_quotes/models.py
Normal file
13
web/lazaro_quotes/models.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from django.db import models
|
||||
|
||||
|
||||
class Quote(models.Model):
|
||||
text = models.TextField()
|
||||
quoted_name = models.CharField(null=True, blank=True, max_length=254)
|
||||
suggester = models.ForeignKey(
|
||||
Suggester, on_delete=models.SET_NULL, null=True, blank=True)
|
||||
|
||||
|
||||
class Suggester(models.model):
|
||||
name = models.CharField(null=True, blank=True, max_length=254)
|
||||
email = models.CharField(null=True, blank=True, max_length=254)
|
3
web/lazaro_quotes/tests.py
Normal file
3
web/lazaro_quotes/tests.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
3
web/lazaro_quotes/views.py
Normal file
3
web/lazaro_quotes/views.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
from django.shortcuts import render
|
||||
|
||||
# Create your views here.
|
Loading…
Add table
Add a link
Reference in a new issue