Commit aefed1e2 by Ned Batchelder

Minor cleanups for Django 1.8

Removed stub files that had no real content in them.

Removed the check against the Django version.  Kept the index needed for
the query.
parent d175715e
......@@ -56,20 +56,11 @@ class FSExpirations(models.Model):
class Meta:
unique_together = (("module","filename"))
## FIXME: We'd like to create an index first on expiration than on expires (so we can
## search for objects where expires=True and expiration is before now). Django 1.5
## supports this, but 1.4 does not.
##
## I'm putting this in in preparation for 1.5. This is
## slightly redundant, since documentation is unclear about
## order of the joint index.
##
## When 1.5 comes out, we can drop the index on expiration.
if django.get_version()>='1.5':
index_together = [
["expires","expiration"],
["expiration","expires"]
]
# We'd like to create an index first on expiration than on expires (so we can
# search for objects where expires=True and expiration is before now).
index_together = [
["expiration", "expires"],
]
def __str__(self):
if self.expires:
......
"""
This file demonstrates writing tests using the unittest module. These will pass
when you run "manage.py test".
Replace this with more appropriate tests for your application.
"""
from django.test import TestCase
class SimpleTest(TestCase):
def test_basic_addition(self):
"""
Tests that 1 + 1 always equals 2.
"""
self.assertEqual(1 + 1, 2)
# Create your views here.
......@@ -3,7 +3,7 @@
from distutils.core import setup
setup(name='django-pyfs',
version='1.0',
version='1.0.1',
description='Django pyfilesystem integration',
author='Piotr Mitros',
author_email='pmitros@edx.org',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment