Commit ba16db47b5555fbacffe398848c9891ab2e3ccb8
1 parent
cb7a94da
Exists in
master
and in
5 other branches
Altering name of mimeType model #132
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
core/models.py
... | ... | @@ -4,13 +4,13 @@ from users.models import User |
4 | 4 | from autoslug.fields import AutoSlugField |
5 | 5 | # Create your models here. |
6 | 6 | |
7 | -class MymeType(models.Model): | |
7 | +class MimeType(models.Model): | |
8 | 8 | typ = models.CharField(_('Type'), max_length=100, unique=True) |
9 | 9 | icon = models.CharField(_('Icon'), max_length=50, unique=True) |
10 | 10 | |
11 | 11 | class Meta: |
12 | - verbose_name= _('Amadeus Myme Type') | |
13 | - verbose_name_plural = _('Amadeus Myme Types') | |
12 | + verbose_name= _('Amadeus Mime Type') | |
13 | + verbose_name_plural = _('Amadeus Mime Types') | |
14 | 14 | |
15 | 15 | def get_icon(self, type): |
16 | 16 | pass | ... | ... |
courses/models.py
... | ... | @@ -2,7 +2,7 @@ from django.utils.translation import ugettext_lazy as _ |
2 | 2 | from django.db import models |
3 | 3 | from autoslug.fields import AutoSlugField |
4 | 4 | from users.models import User |
5 | -from core.models import Resource, MymeType | |
5 | +from core.models import Resource, MimeType | |
6 | 6 | from s3direct.fields import S3DirectField |
7 | 7 | |
8 | 8 | class CourseCategory(models.Model): | ... | ... |
exam/models.py
... | ... | @@ -6,7 +6,7 @@ from core.models import Resource |
6 | 6 | from courses.models import Activity |
7 | 7 | |
8 | 8 | class Exam(Activity): |
9 | - begin_date = models.DateField(_('Begin of Course Date')) | |
9 | + begin_date = models.DateField(_('Begin of Course Date'), blank=True) | |
10 | 10 | |
11 | 11 | class Meta: |
12 | 12 | verbose_name = _('Exam') | ... | ... |