annotate downloads/migrations/0002_auto_20151214_1958.py @ 1037:7e0c3cbd3cda
Fix bad select_related call.
In Django 1.8, select_related now throws an error if you give it an invalid
field. This was happening. Fix that query.
Also noticed an extra query generated in the display_post template. Fixed.
author |
Brian Neal <bgneal@gmail.com> |
date |
Tue, 29 Dec 2015 22:21:42 -0600 |
parents |
5ba2508939f7 |
children |
|
rev |
line source |
bgneal@1028
|
1 # -*- coding: utf-8 -*-
|
bgneal@1028
|
2 from __future__ import unicode_literals
|
bgneal@1028
|
3
|
bgneal@1028
|
4 from django.db import migrations, models
|
bgneal@1028
|
5
|
bgneal@1028
|
6
|
bgneal@1028
|
7 class Migration(migrations.Migration):
|
bgneal@1028
|
8
|
bgneal@1028
|
9 dependencies = [
|
bgneal@1028
|
10 ('downloads', '0001_initial'),
|
bgneal@1028
|
11 ]
|
bgneal@1028
|
12
|
bgneal@1028
|
13 operations = [
|
bgneal@1028
|
14 migrations.AlterField(
|
bgneal@1028
|
15 model_name='download',
|
bgneal@1028
|
16 name='ip_address',
|
bgneal@1028
|
17 field=models.GenericIPAddressField(verbose_name=b'IP Address'),
|
bgneal@1028
|
18 ),
|
bgneal@1028
|
19 migrations.AlterField(
|
bgneal@1028
|
20 model_name='pendingdownload',
|
bgneal@1028
|
21 name='ip_address',
|
bgneal@1028
|
22 field=models.GenericIPAddressField(verbose_name=b'IP Address'),
|
bgneal@1028
|
23 ),
|
bgneal@1028
|
24 ]
|