Merge branch 'master' into stable
This commit is contained in:
commit
6e808ff2c8
3 changed files with 24 additions and 1 deletions
18
galerie/migrations/0005_obrazek_ordering_datum.py
Normal file
18
galerie/migrations/0005_obrazek_ordering_datum.py
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
|
from django.db import models, migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('galerie', '0004_nepovinna_galerie_u_obrazku'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterModelOptions(
|
||||||
|
name='obrazek',
|
||||||
|
options={'ordering': ['datum'], 'verbose_name': 'Obr\xe1zek', 'verbose_name_plural': 'Obr\xe1zky'},
|
||||||
|
),
|
||||||
|
]
|
|
@ -84,6 +84,7 @@ class Obrazek(models.Model):
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = 'Obrázek'
|
verbose_name = 'Obrázek'
|
||||||
verbose_name_plural = 'Obrázky'
|
verbose_name_plural = 'Obrázky'
|
||||||
|
ordering = ['datum']
|
||||||
def save(self):
|
def save(self):
|
||||||
original = Image.open(self.obrazek_velky)
|
original = Image.open(self.obrazek_velky)
|
||||||
# vycteni EXIFu
|
# vycteni EXIFu
|
||||||
|
|
|
@ -235,6 +235,10 @@ LOGGING = {
|
||||||
SEMINAR_RESENI_DIR = os.path.join(BASE_DIR, 'media', 'reseni')
|
SEMINAR_RESENI_DIR = os.path.join(BASE_DIR, 'media', 'reseni')
|
||||||
|
|
||||||
|
|
||||||
|
CKEDITOR_CONFIGS = {
|
||||||
|
'default': {
|
||||||
|
'entities': False
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue