-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store version media availability (#6278)
* Store version media availability - Stored during the build process - Does a particular version have a PDF? ePub? etc. * Add tests for missing version formats Co-Authored-By: Manuel Kaufmann <[email protected]>
- Loading branch information
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,9 @@ class Meta: | |
'built', | ||
'downloads', | ||
'type', | ||
'has_pdf', | ||
'has_epub', | ||
'has_htmlzip', | ||
) | ||
|
||
|
||
|
30 changes: 30 additions & 0 deletions
30
readthedocs/builds/migrations/0011_version-media-availability.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.23 on 2019-10-07 23:32 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('builds', '0010_add-description-field-to-automation-rule'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='version', | ||
name='has_epub', | ||
field=models.BooleanField(default=False, verbose_name='Has ePub'), | ||
), | ||
migrations.AddField( | ||
model_name='version', | ||
name='has_htmlzip', | ||
field=models.BooleanField(default=False, verbose_name='Has HTML Zip'), | ||
), | ||
migrations.AddField( | ||
model_name='version', | ||
name='has_pdf', | ||
field=models.BooleanField(default=False, verbose_name='Has PDF'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters