Put everything back
This commit is contained in:
parent
96d1ada1cc
commit
24c616b885
|
@ -2,7 +2,7 @@ from django.contrib import admin
|
||||||
|
|
||||||
# Register your models here.
|
# Register your models here.
|
||||||
|
|
||||||
from .models import Page,Updates
|
from .models import Page,Contact,Updates
|
||||||
admin.site.register(Page)
|
admin.site.register(Page)
|
||||||
#admin.site.register(Contact)
|
admin.site.register(Contact)
|
||||||
admin.site.register(Updates)
|
admin.site.register(Updates)
|
|
@ -12,7 +12,7 @@ class Page(models.Model):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.title
|
return self.title
|
||||||
|
|
||||||
"""class Contact(models.Model):
|
class Contact(models.Model):
|
||||||
name=models.CharField(max_length=100)
|
name=models.CharField(max_length=100)
|
||||||
url=models.CharField(max_length=500)
|
url=models.CharField(max_length=500)
|
||||||
proto=models.CharField(max_length=100)
|
proto=models.CharField(max_length=100)
|
||||||
|
@ -24,7 +24,7 @@ class Page(models.Model):
|
||||||
a=Updates.objects.get(page='contact')
|
a=Updates.objects.get(page='contact')
|
||||||
a.date=date.today()
|
a.date=date.today()
|
||||||
a.save()
|
a.save()
|
||||||
super().save(*args,**kwargs)"""
|
super().save(*args,**kwargs)
|
||||||
|
|
||||||
class Updates(models.Model):
|
class Updates(models.Model):
|
||||||
page=models.CharField(max_length=100)
|
page=models.CharField(max_length=100)
|
||||||
|
|
|
@ -4,7 +4,7 @@ from django.template import loader
|
||||||
import random as ra
|
import random as ra
|
||||||
import asyncio
|
import asyncio
|
||||||
from . import mdl
|
from . import mdl
|
||||||
from .models import Page,Updates
|
from .models import Page,Contact,Updates
|
||||||
|
|
||||||
import functools
|
import functools
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user