Put everything back

This commit is contained in:
Zergling_man 2021-12-12 19:47:56 +11:00
parent 96d1ada1cc
commit 24c616b885
3 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ from django.contrib import admin
# Register your models here.
from .models import Page,Updates
from .models import Page,Contact,Updates
admin.site.register(Page)
#admin.site.register(Contact)
admin.site.register(Contact)
admin.site.register(Updates)

View File

@ -12,7 +12,7 @@ class Page(models.Model):
def __str__(self):
return self.title
"""class Contact(models.Model):
class Contact(models.Model):
name=models.CharField(max_length=100)
url=models.CharField(max_length=500)
proto=models.CharField(max_length=100)
@ -24,7 +24,7 @@ class Page(models.Model):
a=Updates.objects.get(page='contact')
a.date=date.today()
a.save()
super().save(*args,**kwargs)"""
super().save(*args,**kwargs)
class Updates(models.Model):
page=models.CharField(max_length=100)

View File

@ -4,7 +4,7 @@ from django.template import loader
import random as ra
import asyncio
from . import mdl
from .models import Page,Updates
from .models import Page,Contact,Updates
import functools