Initial commit

This commit is contained in:
Pedro Rey Anca 2024-12-02 18:19:54 +01:00
commit 8f112c1bb5
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
69 changed files with 2068 additions and 0 deletions

View file

View file

@ -0,0 +1,3 @@
from django.contrib import admin
# Register your models here.

View file

@ -0,0 +1,6 @@
from django.apps import AppConfig
class LazaroQuotesConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'lazaro_quotes'

View file

View 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)

View file

@ -0,0 +1,3 @@
from django.test import TestCase
# Create your tests here.

View file

@ -0,0 +1,3 @@
from django.shortcuts import render
# Create your views here.