mirror of
https://github.com/olegvodyanov/instalinks.git
synced 2025-12-20 04:37:04 +03:00
10 lines
212 B
Python
10 lines
212 B
Python
from django.db import models
|
|
|
|
|
|
class Link(models.Model):
|
|
url = models.URLField()
|
|
watched = models.BooleanField(default=False)
|
|
|
|
def __str__(self):
|
|
return f"{self.url} (watched={self.watched})"
|