Skip to content

Commit

Permalink
Merge 1110fe5 into 7db37be
Browse files Browse the repository at this point in the history
  • Loading branch information
urtzai committed Mar 23, 2017
2 parents 7db37be + 1110fe5 commit 8031faf
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions podcasting/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ def get_license_field():
)
return license


def get_original_image_field():
if 'photologue' in settings.INSTALLED_APPS:
original_image = ('original_image', models.ForeignKey(to='photologue.Photo', verbose_name=_("image"), default=None, null=True, blank=True, help_text='\n A podcast must have 1400 x 1400 pixel cover art in JPG or PNG\n format using RGB color space. See our technical spec for\n details. To be eligible for featuring on iTunes Stores,\n choose an attractive, original, and square JPEG (.jpg) or\n PNG (.png) image at a size of 1400x1400 pixels. The image\n will be scaled down to 50x50 pixels at smallest in iTunes.\n For reference see the <a\n href="http://www.apple.com/itunes/podcasts/specs.html#metadata">iTunes\n Podcast specs</a>.<br /><br /> For episode artwork to\n display in iTunes, image must be <a\n href="http://answers.yahoo.com/question/index?qid=20080501164348AAjvBvQ">\n saved to file\'s <strong>metadata</strong></a> before\n enclosure uploading!'))
else:
original_image = ('original_image', models.ImageField(help_text='\n A podcast must have 1400 x 1400 pixel cover art in JPG or PNG\n format using RGB color space. See our technical spec for\n details. To be eligible for featuring on iTunes Stores,\n choose an attractive, original, and square JPEG (.jpg) or\n PNG (.png) image at a size of 1400x1400 pixels. The image\n will be scaled down to 50x50 pixels at smallest in iTunes.\n For reference see the <a\n href="http://www.apple.com/itunes/podcasts/specs.html#metadata">iTunes\n Podcast specs</a>.<br /><br /> For episode artwork to\n display in iTunes, image must be <a\n href="http://answers.yahoo.com/question/index?qid=20080501164348AAjvBvQ">\n saved to file\'s <strong>metadata</strong></a> before\n enclosure uploading!', upload_to=podcasting.models.get_episode_upload_folder, verbose_name='image', blank=True))
return original_image


class Migration(migrations.Migration):

dependencies = [
Expand Down Expand Up @@ -75,7 +84,7 @@ class Migration(migrations.Migration):
('description', models.TextField(help_text="\n This is your chance to tell potential subscribers all about your podcast.\n Describe your subject matter, media format, episode schedule, and other\n relevant info so that they know what they'll be getting when they\n subscribe. In addition, make a list of the most relevant search terms\n that you want your podcast to match, then build them into your\n description. Note that iTunes removes podcasts that include lists of\n irrelevant words in the itunes:summary, description, or\n itunes:keywords tags. This field can be up to 4000 characters.", max_length=4000, verbose_name='description', blank=True)),
('tracklist', models.TextField(help_text='One track per line, machine will automatically add the numbers.', verbose_name='tracklist', blank=True)),
('tweet_text', models.CharField(verbose_name='tweet text', max_length=140, editable=False)),
('original_image', models.ImageField(help_text='\n A podcast must have 1400 x 1400 pixel cover art in JPG or PNG\n format using RGB color space. See our technical spec for\n details. To be eligible for featuring on iTunes Stores,\n choose an attractive, original, and square JPEG (.jpg) or\n PNG (.png) image at a size of 1400x1400 pixels. The image\n will be scaled down to 50x50 pixels at smallest in iTunes.\n For reference see the <a\n href="http://www.apple.com/itunes/podcasts/specs.html#metadata">iTunes\n Podcast specs</a>.<br /><br /> For episode artwork to\n display in iTunes, image must be <a\n href="http://answers.yahoo.com/question/index?qid=20080501164348AAjvBvQ">\n saved to file\'s <strong>metadata</strong></a> before\n enclosure uploading!', upload_to=podcasting.models.get_episode_upload_folder, verbose_name='image', blank=True)),
get_original_image_field(),
('hours', models.SmallIntegerField(default=0, max_length=2, verbose_name='hours')),
('minutes', models.SmallIntegerField(default=0, max_length=2, verbose_name='minutes', choices=[(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10), (11, 11), (12, 12), (13, 13), (14, 14), (15, 15), (16, 16), (17, 17), (18, 18), (19, 19), (20, 20), (21, 21), (22, 22), (23, 23), (24, 24), (25, 25), (26, 26), (27, 27), (28, 28), (29, 29), (30, 30), (31, 31), (32, 32), (33, 33), (34, 34), (35, 35), (36, 36), (37, 37), (38, 38), (39, 39), (40, 40), (41, 41), (42, 42), (43, 43), (44, 44), (45, 45), (46, 46), (47, 47), (48, 48), (49, 49), (50, 50), (51, 51), (52, 52), (53, 53), (54, 54), (55, 55), (56, 56), (57, 57), (58, 58), (59, 59)])),
('seconds', models.SmallIntegerField(default=0, max_length=2, verbose_name='seconds', choices=[(0, 0), (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10), (11, 11), (12, 12), (13, 13), (14, 14), (15, 15), (16, 16), (17, 17), (18, 18), (19, 19), (20, 20), (21, 21), (22, 22), (23, 23), (24, 24), (25, 25), (26, 26), (27, 27), (28, 28), (29, 29), (30, 30), (31, 31), (32, 32), (33, 33), (34, 34), (35, 35), (36, 36), (37, 37), (38, 38), (39, 39), (40, 40), (41, 41), (42, 42), (43, 43), (44, 44), (45, 45), (46, 46), (47, 47), (48, 48), (49, 49), (50, 50), (51, 51), (52, 52), (53, 53), (54, 54), (55, 55), (56, 56), (57, 57), (58, 58), (59, 59)])),
Expand Down Expand Up @@ -110,7 +119,7 @@ class Migration(migrations.Migration):
('subtitle', models.CharField(help_text='Looks best if only a few words, like a tagline.', max_length=255, verbose_name='subtitle')),
('on_itunes', models.BooleanField(default=True, help_text='Checked if the podcast is submitted to iTunes', verbose_name='iTunes')),
('description', models.TextField(help_text="\n This is your chance to tell potential subscribers all about your\n podcast. Describe your subject matter, media format,\n episode schedule, and other relevant info so that they\n know what they'll be getting when they subscribe. In\n addition, make a list of the most relevant search terms\n that you want yourp podcast to match, then build them into\n your description. Note that iTunes removes podcasts that\n include lists of irrelevant words in the itunes:summary,\n description, or itunes:keywords tags. This field can be up\n to 4000 characters.", max_length=4000, verbose_name='description')),
('original_image', models.ImageField(help_text='\n A podcast must have 1400 x 1400 pixel cover art in JPG or PNG\n format using RGB color space. See our technical spec for\n details. To be eligible for featuring on iTunes Stores,\n choose an attractive, original, and square JPEG (.jpg) or\n PNG (.png) image at a size of 1400x1400 pixels. The image\n will be scaled down to 50x50 pixels at smallest in iTunes.\n For reference see the <a\n href="http://www.apple.com/itunes/podcasts/specs.html#metadata">iTunes\n Podcast specs</a>.<br /><br /> For episode artwork to\n display in iTunes, image must be <a\n href="http://answers.yahoo.com/question/index?qid=20080501164348AAjvBvQ">\n saved to file\'s <strong>metadata</strong></a> before\n enclosure uploading!', upload_to=podcasting.models.get_show_upload_folder, verbose_name='image', blank=True)),
get_original_image_field(),
('feedburner', models.URLField(help_text='Fill this out after saving this show and at least one\n episode. URL should look like "http://feeds.feedburner.com/TitleOfShow".\n See <a href="http://code.google.com/p/django-podcast/">documentation</a>\n for more. <a href="http://www.feedburner.com/fb/a/ping">Manually ping</a>', verbose_name='feedburner url', blank=True)),
('explicit', models.PositiveSmallIntegerField(default=1, help_text='``Clean`` will put the clean iTunes graphic by it.', verbose_name='explicit', choices=[(1, 'yes'), (2, 'no'), (3, 'clean')])),
('redirect', models.URLField(help_text="The show's new URL feed if changing\n the URL of the current show feed. Must continue old feed for at least\n two weeks and write a 301 redirect for old feed.", verbose_name='redirect', blank=True)),
Expand Down

0 comments on commit 8031faf

Please sign in to comment.