annotate forums/migrations/0002_auto_20151214_2000.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 ('forums', '0001_initial'),
|
bgneal@1028
|
11 ]
|
bgneal@1028
|
12
|
bgneal@1028
|
13 operations = [
|
bgneal@1028
|
14 migrations.AlterField(
|
bgneal@1028
|
15 model_name='category',
|
bgneal@1028
|
16 name='groups',
|
bgneal@1028
|
17 field=models.ManyToManyField(help_text=b'If groups are assigned to this category, only members of those groups can view this category.', to='auth.Group', blank=True),
|
bgneal@1028
|
18 ),
|
bgneal@1028
|
19 migrations.AlterField(
|
bgneal@1028
|
20 model_name='forum',
|
bgneal@1028
|
21 name='moderators',
|
bgneal@1028
|
22 field=models.ManyToManyField(to='auth.Group', blank=True),
|
bgneal@1028
|
23 ),
|
bgneal@1028
|
24 migrations.AlterField(
|
bgneal@1028
|
25 model_name='post',
|
bgneal@1028
|
26 name='user_ip',
|
bgneal@1028
|
27 field=models.GenericIPAddressField(default=b'', null=True, blank=True),
|
bgneal@1028
|
28 ),
|
bgneal@1028
|
29 ]
|