Fixed mediafile model. Fixed #1808.

This commit is contained in:
Norman Jäckel 2016-01-10 00:20:32 +01:00
parent c30116f5c1
commit 2cfa7517a8
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mediafiles', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='mediafile',
name='title',
field=models.CharField(max_length=255, unique=True),
),
]

View File

@ -18,7 +18,7 @@ class Mediafile(RESTModelMixin, models.Model):
for more information.
"""
title = models.CharField(max_length=255, unique=True, blank=True)
title = models.CharField(max_length=255, unique=True)
"""A string representing the title of the file."""
uploader = models.ForeignKey(

View File

@ -27,7 +27,6 @@
</div>
<span ng-show="mediafile.mediafile.result">Upload Successful</span>
<span class="err" ng-show="errorMsg">{{ errorMsg }}</span>
<i ng-show="mediafile.file.$error.required">*required</i><br>
<i ng-show="mediafile.file.$error.maxSize">File too large