# HG changeset patch # User Brian Neal # Date 1428026758 18000 # Node ID 5ab9bd1b22b63ffc3d4e3a5a5e722c7ff0507247 # Parent 8a93b1f838f9996ea65cd04955afc6eb0a85dbc0# Parent 1b5b9be17764e38bd7a7b68b48f9bf549fd36e41 Merge. diff -r 8a93b1f838f9 -r 5ab9bd1b22b6 band/models.py --- a/band/models.py Thu Apr 02 21:04:08 2015 -0500 +++ b/band/models.py Thu Apr 02 21:05:58 2015 -0500 @@ -15,7 +15,7 @@ photo = models.ImageField(upload_to='images/bio/', blank=True) order = models.SmallIntegerField( help_text = "Controls order of display; lower numbers displayed first") - is_active = models.BooleanField() + is_active = models.BooleanField(default=True) start_date = models.DateField() end_date = models.DateField(blank=True, null=True, @@ -101,7 +101,7 @@ name = models.CharField(max_length=64) desc = models.TextField() price = models.DecimalField(max_digits=5, decimal_places=2) - in_stock = models.BooleanField() + in_stock = models.BooleanField(default=True) photo = models.ForeignKey(Photo) def __unicode__(self): diff -r 8a93b1f838f9 -r 5ab9bd1b22b6 email_list/tests/test_models.py --- a/email_list/tests/test_models.py Thu Apr 02 21:04:08 2015 -0500 +++ b/email_list/tests/test_models.py Thu Apr 02 21:05:58 2015 -0500 @@ -21,8 +21,8 @@ self.assertTrue(sub.status == 'A') self.assertTrue(sub.is_active()) - self.failIf(sub.is_pending()) - self.failIf(sub.is_leaving()) + self.assertFalse(sub.is_pending()) + self.assertFalse(sub.is_leaving()) def test_set_pending(self): @@ -33,9 +33,9 @@ self.assertTrue(now - sub.status_date < datetime.timedelta(seconds=2)) self.assertTrue(sub.status == 'P') - self.failIf(sub.is_active()) + self.assertFalse(sub.is_active()) self.assertTrue(sub.is_pending()) - self.failIf(sub.is_leaving()) + self.assertFalse(sub.is_leaving()) self.assertTrue(len(sub.key) == sub.key_length) @@ -49,8 +49,8 @@ self.assertTrue(sub.status == 'A') self.assertTrue(sub.is_active()) - self.failIf(sub.is_pending()) - self.failIf(sub.is_leaving()) + self.assertFalse(sub.is_pending()) + self.assertFalse(sub.is_leaving()) def test_set_leaving(self): @@ -61,8 +61,8 @@ self.assertTrue(now - sub.status_date < datetime.timedelta(seconds=2)) self.assertTrue(sub.status == 'L') - self.failIf(sub.is_active()) - self.failIf(sub.is_pending()) + self.assertFalse(sub.is_active()) + self.assertFalse(sub.is_pending()) self.assertTrue(sub.is_leaving()) self.assertTrue(len(sub.key) == sub.key_length) diff -r 8a93b1f838f9 -r 5ab9bd1b22b6 gigs/templatetags/gig_tags.py --- a/gigs/templatetags/gig_tags.py Thu Apr 02 21:04:08 2015 -0500 +++ b/gigs/templatetags/gig_tags.py Thu Apr 02 21:05:58 2015 -0500 @@ -15,7 +15,8 @@ @register.inclusion_tag('gigs/upcoming_gigs_tag.html') def upcoming_gigs(): - gigs = Gig.objects.filter(date__gte=datetime.date.today).select_related( + today = datetime.date.today() + gigs = Gig.objects.filter(date__gte=today).select_related( 'flyer', 'venue', 'venue__city', 'venue__city__state', 'venue__city__country').order_by('date')[:10] diff -r 8a93b1f838f9 -r 5ab9bd1b22b6 madeira/apache/madeira.wsgi --- a/madeira/apache/madeira.wsgi Thu Apr 02 21:04:08 2015 -0500 +++ b/madeira/apache/madeira.wsgi Thu Apr 02 21:05:58 2015 -0500 @@ -32,7 +32,7 @@ if not OFFLINE: os.environ['DJANGO_SETTINGS_MODULE'] = 'madeira.settings.production' - import django.core.handlers.wsgi - application = django.core.handlers.wsgi.WSGIHandler() + from django.core.wsgi import get_wsgi_application + application = get_wsgi_application() else: - application = offline_handler + application = offline_handler diff -r 8a93b1f838f9 -r 5ab9bd1b22b6 madeira/settings/base.py --- a/madeira/settings/base.py Thu Apr 02 21:04:08 2015 -0500 +++ b/madeira/settings/base.py Thu Apr 02 21:05:58 2015 -0500 @@ -111,6 +111,9 @@ 'photologue', ] +# Turn off warning about test runner behavior change +SILENCED_SYSTEM_CHECKS = ['1_6.W001'] + ####################################################################### # Messages ####################################################################### diff -r 8a93b1f838f9 -r 5ab9bd1b22b6 madeira/templates/admin/base_site.html --- a/madeira/templates/admin/base_site.html Thu Apr 02 21:04:08 2015 -0500 +++ b/madeira/templates/admin/base_site.html Thu Apr 02 21:05:58 2015 -0500 @@ -10,4 +10,8 @@

{% trans 'Madeira site administration' %}

{% endblock %} -{% block nav-global %}Send mail to the mailing list{% endblock %} +{% block nav-global %} +
+ยป Send mail to the mailing list +
+{% endblock %} diff -r 8a93b1f838f9 -r 5ab9bd1b22b6 madeira/urls.py --- a/madeira/urls.py Thu Apr 02 21:04:08 2015 -0500 +++ b/madeira/urls.py Thu Apr 02 21:05:58 2015 -0500 @@ -8,8 +8,6 @@ from photologue.models import Photo -admin.autodiscover() - urlpatterns = patterns('', url(r'^$', TemplateView.as_view(template_name='index.html'),