Django Library Themes
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

0001_initial.py 1.4KB

12345678910111213141516171819202122232425262728293031323334
  1. # Generated by Django 2.2.5 on 2019-12-18 20:01
  2. from django.db import migrations, models
  3. class Migration(migrations.Migration):
  4. initial = True
  5. dependencies = [
  6. ]
  7. operations = [
  8. migrations.CreateModel(
  9. name='BottomBar',
  10. fields=[
  11. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  12. ('name', models.CharField(blank=True, max_length=64)),
  13. ('icon', models.ImageField(blank=True, upload_to='theme')),
  14. ('url', models.URLField()),
  15. ('left', models.BooleanField()),
  16. ('sequence_number', models.SmallIntegerField(choices=[(1, '1'), (2, '2'), (3, '3'), (4, '4'), (5, '5')])),
  17. ],
  18. ),
  19. migrations.CreateModel(
  20. name='Setting',
  21. fields=[
  22. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  23. ('page_image', models.ImageField(default='theme/logo.png', upload_to='theme')),
  24. ('page_theme', models.CharField(choices=[('default', 'Default'), ('clear-red', 'Clear Red'), ('clear-green', 'Clear Green'), ('clear-blue', 'Clear Blue')], default='default', max_length=64)),
  25. ('page_title', models.CharField(blank=True, default='MyApp', max_length=32)),
  26. ],
  27. ),
  28. ]