##// END OF EJS Templates
api.markdown отредактирован онлайн на Bitbucket
api.markdown отредактирован онлайн на Bitbucket

File last commit:

r1337:4c8c3ec5 default
r1567:1578c7d8 Lotgyero/apimarkd...
Show More
0026_post_opening.py
20 lines | 437 B | text/x-python | PythonLexer
neko259
Save "opening post" flag with the post itself and don't count it every time. Speed up getting posts with attachments and images
r1337 # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('boards', '0025_auto_20150825_2049'),
]
operations = [
migrations.AddField(
model_name='post',
name='opening',
field=models.BooleanField(default=False),
preserve_default=False,
),
]