mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-25 06:26:37 +00:00
Index on site & key
This commit is contained in:
parent
4777b85113
commit
44b92643eb
@ -1765,6 +1765,7 @@ class Metadata(models.Model):
|
|||||||
_('site'),
|
_('site'),
|
||||||
max_length=256,
|
max_length=256,
|
||||||
blank=True,
|
blank=True,
|
||||||
|
db_index=True,
|
||||||
null=False,
|
null=False,
|
||||||
default='Youtube',
|
default='Youtube',
|
||||||
help_text=_('Site from which the metadata was retrieved'),
|
help_text=_('Site from which the metadata was retrieved'),
|
||||||
@ -1773,6 +1774,7 @@ class Metadata(models.Model):
|
|||||||
_('key'),
|
_('key'),
|
||||||
max_length=256,
|
max_length=256,
|
||||||
blank=True,
|
blank=True,
|
||||||
|
db_index=True,
|
||||||
null=False,
|
null=False,
|
||||||
default='',
|
default='',
|
||||||
help_text=_('Media identifier at the site from which the metadata was retrieved'),
|
help_text=_('Media identifier at the site from which the metadata was retrieved'),
|
||||||
@ -1791,11 +1793,13 @@ class Metadata(models.Model):
|
|||||||
)
|
)
|
||||||
uploaded = models.DateTimeField(
|
uploaded = models.DateTimeField(
|
||||||
_('uploaded'),
|
_('uploaded'),
|
||||||
|
db_index=True,
|
||||||
null=True,
|
null=True,
|
||||||
help_text=_('Date and time the media was uploaded'),
|
help_text=_('Date and time the media was uploaded'),
|
||||||
)
|
)
|
||||||
published = models.DateTimeField(
|
published = models.DateTimeField(
|
||||||
_('published'),
|
_('published'),
|
||||||
|
db_index=True,
|
||||||
null=True,
|
null=True,
|
||||||
help_text=_('Date and time the media was published'),
|
help_text=_('Date and time the media was published'),
|
||||||
)
|
)
|
||||||
@ -1888,6 +1892,7 @@ class MetadataFormat(models.Model):
|
|||||||
_('site'),
|
_('site'),
|
||||||
max_length=256,
|
max_length=256,
|
||||||
blank=True,
|
blank=True,
|
||||||
|
db_index=True,
|
||||||
null=False,
|
null=False,
|
||||||
default='Youtube',
|
default='Youtube',
|
||||||
help_text=_('Site from which the format is available'),
|
help_text=_('Site from which the format is available'),
|
||||||
@ -1896,6 +1901,7 @@ class MetadataFormat(models.Model):
|
|||||||
_('key'),
|
_('key'),
|
||||||
max_length=256,
|
max_length=256,
|
||||||
blank=True,
|
blank=True,
|
||||||
|
db_index=True,
|
||||||
null=False,
|
null=False,
|
||||||
default='',
|
default='',
|
||||||
help_text=_('Media identifier at the site for which this format is available'),
|
help_text=_('Media identifier at the site for which this format is available'),
|
||||||
|
Loading…
Reference in New Issue
Block a user