Skip to content

Commit

Permalink
Simplify storage
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 22, 2015
1 parent 4f975ef commit 774bd41
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 3 deletions.
27 changes: 27 additions & 0 deletions files/migrations/0012_auto_20150622_1419.py
@@ -0,0 +1,27 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

dependencies = [
('files', '0011_auto_20150622_1412'),
]

operations = [
migrations.RemoveField(
model_name='release',
name='featured',
),
migrations.RemoveField(
model_name='release',
name='visible',
),
migrations.AlterField(
model_name='release',
name='stable',
field=models.BooleanField(default=False, db_index=True),
),
]
4 changes: 1 addition & 3 deletions files/models.py
Expand Up @@ -21,9 +21,7 @@ class Release(models.Model):
version = models.CharField(max_length=50, unique=True)
version_num = models.IntegerField(default=0, unique=True)
release_notes = models.TextField()
featured = models.BooleanField(default=False)
visible = models.BooleanField(default=False)
stable = models.BooleanField(default=False)
stable = models.BooleanField(default=False, db_index=True)

class Meta(object):
ordering = ['-version_num']
Expand Down

0 comments on commit 774bd41

Please sign in to comment.