Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
breaking and fixing shit all in one commit - NO MORE DJANGO SUPPORT >…
Browse files Browse the repository at this point in the history
… 1.7 BITCHES
  • Loading branch information
vforgione committed Nov 6, 2014
1 parent c71bf6b commit f5c045d
Show file tree
Hide file tree
Showing 21 changed files with 325 additions and 858 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ language: python
python:
- '2.7'
env:
- DJANGO_VERSION=1.5
- DJANGO_VERSION=1.6
- DJANGO_VERSION=1.7
cache:
directories:
Expand Down
14 changes: 14 additions & 0 deletions bulbs/cms_notifications/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,18 @@ class Migration(migrations.Migration):
]

operations = [
migrations.CreateModel(
name='CmsNotification',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('title', models.CharField(max_length=110)),
('body', models.TextField(blank=True)),
('post_date', models.DateTimeField()),
('notify_end_date', models.DateTimeField()),
],
options={
'ordering': ['-id'],
},
bases=(models.Model,),
),
]
28 changes: 0 additions & 28 deletions bulbs/cms_notifications/migrations/0002_cmsnotification.py

This file was deleted.

95 changes: 95 additions & 0 deletions bulbs/content/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,107 @@
from __future__ import unicode_literals

from django.db import models, migrations
import djbetty.fields
import elastimorphic.base
import django.utils.timezone
from django.conf import settings


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('contenttypes', '0001_initial'),
]

operations = [
migrations.CreateModel(
name='Content',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('published', models.DateTimeField(null=True, blank=True)),
('last_modified', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
('title', models.CharField(max_length=512)),
('slug', models.SlugField(default=b'', blank=True)),
('description', models.TextField(default=b'', max_length=1024, blank=True)),
('thumbnail_override', djbetty.fields.ImageField(default=None, null=True, editable=False, blank=True)),
('subhead', models.CharField(default=b'', max_length=255, blank=True)),
('indexed', models.BooleanField(default=True)),
('authors', models.ManyToManyField(to=settings.AUTH_USER_MODEL)),
],
options={
'permissions': (('publish_own_content', 'Can publish their own content'), ('publish_content', 'Can publish content'), ('promote_content', 'Can promote content')),
},
bases=(elastimorphic.base.PolymorphicIndexable, models.Model),
),
migrations.CreateModel(
name='FeatureType',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255)),
('slug', models.SlugField(unique=True)),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='LogEntry',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('action_time', models.DateTimeField(auto_now=True, verbose_name=b'action time')),
('object_id', models.TextField(null=True, verbose_name=b'object id', blank=True)),
('change_message', models.TextField(verbose_name=b'change message', blank=True)),
('content_type', models.ForeignKey(related_name='change_logs', blank=True, to='contenttypes.ContentType', null=True)),
('user', models.ForeignKey(related_name='change_logs', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
],
options={
'ordering': ('-action_time',),
},
bases=(models.Model,),
),
migrations.CreateModel(
name='ObfuscatedUrlInfo',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('create_date', models.DateTimeField()),
('expire_date', models.DateTimeField()),
('url_uuid', models.CharField(unique=True, max_length=32, editable=False)),
('content', models.ForeignKey(to='content.Content')),
],
options={
},
bases=(models.Model,),
),
migrations.CreateModel(
name='Tag',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('name', models.CharField(max_length=255)),
('slug', models.SlugField(unique=True)),
('polymorphic_ctype', models.ForeignKey(related_name='polymorphic_content.tag_set', editable=False, to='contenttypes.ContentType', null=True)),
],
options={
'abstract': False,
},
bases=(elastimorphic.base.PolymorphicIndexable, models.Model),
),
migrations.AddField(
model_name='content',
name='feature_type',
field=models.ForeignKey(blank=True, to='content.FeatureType', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='content',
name='polymorphic_ctype',
field=models.ForeignKey(related_name='polymorphic_content.content_set', editable=False, to='contenttypes.ContentType', null=True),
preserve_default=True,
),
migrations.AddField(
model_name='content',
name='tags',
field=models.ManyToManyField(to='content.Tag', blank=True),
preserve_default=True,
),
]
100 changes: 0 additions & 100 deletions bulbs/content/migrations/0002_add_field_content_feature_type.py

This file was deleted.

109 changes: 0 additions & 109 deletions bulbs/content/migrations/0002_auto_20141106_2050.py

This file was deleted.

Loading

0 comments on commit f5c045d

Please sign in to comment.