Merge pull request #5275 from FinnStutzenstein/default169projector

Changed the default projector aspect ratio to 16:9 on initial databas…
This commit is contained in:
Emanuel Schütze 2020-03-24 12:44:05 +01:00 committed by GitHub
commit cd3435064c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -257,7 +257,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name="projector", model_name="projector",
name="height", name="height",
field=models.PositiveIntegerField(default=915), field=models.PositiveIntegerField(default=675),
), ),
migrations.AddField( migrations.AddField(
model_name="projector", model_name="projector",
@ -267,7 +267,7 @@ class Migration(migrations.Migration):
migrations.AddField( migrations.AddField(
model_name="projector", model_name="projector",
name="width", name="width",
field=models.PositiveIntegerField(default=1220), field=models.PositiveIntegerField(default=1200),
), ),
migrations.AddField( migrations.AddField(
model_name="projectiondefault", model_name="projectiondefault",

View File

@ -83,7 +83,7 @@ class Projector(RESTModelMixin, models.Model):
scale = models.IntegerField(default=0) scale = models.IntegerField(default=0)
scroll = models.IntegerField(default=0) scroll = models.IntegerField(default=0)
width = models.PositiveIntegerField(default=1024) width = models.PositiveIntegerField(default=1200)
aspect_ratio_numerator = models.PositiveIntegerField(default=16) aspect_ratio_numerator = models.PositiveIntegerField(default=16)
aspect_ratio_denominator = models.PositiveIntegerField(default=9) aspect_ratio_denominator = models.PositiveIntegerField(default=9)