Skip to content

Commit f52d44e

Browse files
committed
added test_project
1 parent a29263f commit f52d44e

26 files changed

Lines changed: 385 additions & 5 deletions

File tree

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
setuptools.setup(
77
name="django-streamfield",
8-
version="1.0.6",
8+
version="1.0.7",
99
author="Yury Lapshinov",
1010
author_email="y.raagin@gmail.com",
1111
description="StreamField for native Django Admin or with Grappelli",
1212
long_description=long_description,
1313
long_description_content_type="text/markdown",
1414
url="https://github.com/raagin/django-streamfield",
15-
packages=setuptools.find_packages(),
15+
packages=setuptools.find_packages(exclude=['test_project']),
1616
include_package_data=True,
1717
zip_safe=False,
1818
classifiers=[

streamfield/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
name = "streamfield"
2-
VERSION = '1.0.6'
2+
VERSION = '1.0.7'

streamfield/locale/en/LC_MESSAGES/django.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ msgstr ""
2323
msgid ""
2424
"\n"
2525
"<ul> \n"
26-
" <li>THe blocks are moving by drag-and-drop.</li>\n"
26+
" <li>The blocks are moving by drag-and-drop.</li>\n"
2727
" <li>After moving, adding or deleting blocks you need to save entire "
2828
"object.</li>\n"
2929
" <li>if you had deleted, accidentally, some blocks.<br>You may get back "

streamfield/templates/streamfield/streamfield_admin_help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load i18n %}
22
{% blocktrans %}
33
<ul>
4-
<li>THe blocks are moving by drag-and-drop.</li>
4+
<li>The blocks are moving by drag-and-drop.</li>
55
<li>After moving, adding or deleting blocks you need to save entire object.</li>
66
<li>if you had deleted, accidentally, some blocks.<br>You may get back it,
77
by reload the page. At the same time, all edited blocks will remain, but sorting will get from saved version. New, added blocks,

test_project/db.sqlite3

140 KB
Binary file not shown.

test_project/manage.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python
2+
import os
3+
import sys
4+
5+
if __name__ == '__main__':
6+
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'test_project.settings')
7+
try:
8+
from django.core.management import execute_from_command_line
9+
except ImportError as exc:
10+
raise ImportError(
11+
"Couldn't import Django. Are you sure it's installed and "
12+
"available on your PYTHONPATH environment variable? Did you "
13+
"forget to activate a virtual environment?"
14+
) from exc
15+
execute_from_command_line(sys.argv)

test_project/pages/__init__.py

Whitespace-only changes.

test_project/pages/admin.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from django.contrib import admin
2+
3+
from .models import Page
4+
5+
@admin.register(Page)
6+
class PageAdmin(admin.ModelAdmin):
7+
pass
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Generated by Django 2.2.4 on 2019-08-12 15:46
2+
3+
from django.db import migrations, models
4+
import streamfield.fields
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
initial = True
10+
11+
dependencies = [
12+
]
13+
14+
operations = [
15+
migrations.CreateModel(
16+
name='Page',
17+
fields=[
18+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
19+
('title', models.CharField(max_length=255)),
20+
('stream', streamfield.fields.StreamField(blank=True, default='[]', null=True, verbose_name='Page blocks')),
21+
],
22+
),
23+
]

test_project/pages/migrations/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)