parent
973752bd05
commit
1715657ff5
13 changed files with 190 additions and 69 deletions
@ -0,0 +1,19 @@ |
||||
# -*- coding: utf-8 -*- |
||||
# Generated by Django 1.11.6 on 2017-11-06 18:08 |
||||
from __future__ import unicode_literals |
||||
|
||||
from django.db import migrations |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('access', '0006_auto_20171019_1243'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterModelOptions( |
||||
name='user', |
||||
options={'verbose_name': 'Пользователь', 'verbose_name_plural': 'Пользователи'}, |
||||
), |
||||
] |
||||
@ -0,0 +1,14 @@ |
||||
import os, sys, django, csv |
||||
|
||||
sys.path.append("../") |
||||
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lms.settings") |
||||
django.setup() |
||||
|
||||
from library.models import Tags, ArticleSection, Article |
||||
|
||||
if __name__ == '__main__': |
||||
with open('./management/comment.csv') as comment_csv: |
||||
comment_reader = csv.DictReader(comment_csv) |
||||
for row in comment_reader: |
||||
if row['type'] == 'task': |
||||
print(row) |
||||
@ -0,0 +1,25 @@ |
||||
# -*- coding: utf-8 -*- |
||||
# Generated by Django 1.11.6 on 2017-11-06 17:23 |
||||
from __future__ import unicode_literals |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('finance', '0002_auto_20171023_1037'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterField( |
||||
model_name='invoice', |
||||
name='price', |
||||
field=models.IntegerField(blank=True, max_length=255, null=True, verbose_name='Сумма'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='invoice', |
||||
name='real_price', |
||||
field=models.IntegerField(blank=True, help_text='Сумма, минус комиссия', max_length=255, null=True, verbose_name='Полученная сумма'), |
||||
), |
||||
] |
||||
@ -0,0 +1,25 @@ |
||||
# -*- coding: utf-8 -*- |
||||
# Generated by Django 1.11.6 on 2017-11-06 17:23 |
||||
from __future__ import unicode_literals |
||||
|
||||
from django.db import migrations, models |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('finance', '0003_auto_20171106_1723'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.AlterField( |
||||
model_name='invoice', |
||||
name='price', |
||||
field=models.IntegerField(blank=True, null=True, verbose_name='Сумма'), |
||||
), |
||||
migrations.AlterField( |
||||
model_name='invoice', |
||||
name='real_price', |
||||
field=models.IntegerField(blank=True, help_text='Сумма, минус комиссия', null=True, verbose_name='Полученная сумма'), |
||||
), |
||||
] |
||||
@ -0,0 +1,19 @@ |
||||
# -*- coding: utf-8 -*- |
||||
# Generated by Django 1.11.6 on 2017-11-06 18:13 |
||||
from __future__ import unicode_literals |
||||
|
||||
from django.db import migrations |
||||
|
||||
|
||||
class Migration(migrations.Migration): |
||||
|
||||
dependencies = [ |
||||
('journals', '0007_journal_files'), |
||||
] |
||||
|
||||
operations = [ |
||||
migrations.RemoveField( |
||||
model_name='journal', |
||||
name='children', |
||||
), |
||||
] |
||||
Loading…
Reference in new issue