Links are reworked to DB
This commit is contained in:
+8
-1
@@ -1,3 +1,10 @@
|
||||
from django.db import models
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class Link(models.Model):
|
||||
order = models.SmallIntegerField('Order')
|
||||
url = models.CharField('URL', max_length=250)
|
||||
text = models.CharField('Text', max_length=250)
|
||||
|
||||
def __str__(self):
|
||||
return f'({self.order}, {self.url}, {self.text})'
|
||||
|
||||
Reference in New Issue
Block a user