Skip to content

Commit

Permalink
Merge with 0.16.x
Browse files Browse the repository at this point in the history
  • Loading branch information
barseghyanartur committed Apr 3, 2020
2 parents 864f12c + 00e65f0 commit 473df88
Show file tree
Hide file tree
Showing 12 changed files with 63 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -15,6 +15,12 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.16.2
------
2020-04-03

- Conditional use of deprecated `admin_static` templatetag module.

0.16.1
------
2020-03-18
Expand Down
12 changes: 12 additions & 0 deletions docs/changelog.rst
Expand Up @@ -15,6 +15,18 @@ are used for versioning (schema follows below):
0.3.4 to 0.4).
- All backwards incompatible changes are mentioned in this document.

0.16.2
------
2020-04-03

- Conditional use of deprecated `admin_static` templatetag module.

0.16.1
------
2020-03-18

- Fix the ``datetime`` is not JSON serializable error.

0.16
----
2020-01-11
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -4,7 +4,7 @@
from distutils.version import LooseVersion
from setuptools import setup, find_packages

version = '0.16.1'
version = '0.16.2'

# ***************************************************************************
# ************************** Django version *********************************
Expand Down
4 changes: 2 additions & 2 deletions src/fobi/__init__.py
@@ -1,7 +1,7 @@
__title__ = 'django-fobi'
__version__ = '0.16.1'
__version__ = '0.16.2'
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__copyright__ = '2014-2019 Artur Barseghyan'
__copyright__ = '2014-2020 Artur Barseghyan'
__license__ = 'GPL 2.0/LGPL 2.1'

default_app_config = 'fobi.apps.Config'
@@ -1,6 +1,10 @@
{% extends fobi_theme.base_edit_template %}

{% load i18n admin_static %}
{% if VERSIONS.DJANGO_GTE_2_1 %}
{% load i18n static %}
{% else %}
{% load i18n admin_static %}
{% endif %}

{% block page-title %}{% trans "Dashboard" %}{% endblock page-title %}

Expand Down
@@ -1,6 +1,10 @@
{% extends "fobi/generic/edit_form_entry.html" %}

{% load i18n admin_static %}
{% if VERSIONS.DJANGO_GTE_2_1 %}
{% load i18n static %}
{% else %}
{% load i18n admin_static %}
{% endif %}

{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/changelists.css' %}" />
Expand Down
@@ -1,6 +1,10 @@
{% extends "fobi/generic/import_form_entry.html" %}

{% load i18n admin_static %}
{% if VERSIONS.DJANGO_GTE_2_1 %}
{% load i18n static %}
{% else %}
{% load i18n admin_static %}
{% endif %}

{% block stylesheets %}
<link rel="stylesheet" type="text/css" href="{% static 'admin/css/changelists.css' %}" />
Expand Down
Expand Up @@ -2,7 +2,7 @@
{% load static future_compat %}
{% else %}
{% load admin_static future_compat %}
{% endif %}{#% load firstof from future %#}<!DOCTYPE html>
{% endif %}<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}{% block html-attributes %}{% endblock html-attributes %}>
<head>
<title>{% block page-title %}{% endblock page-title %} | {% block site-title %}{% endblock site-title %}</title>
Expand Down
Expand Up @@ -2,13 +2,9 @@

{% if VERSIONS.DJANGO_GTE_2_1 %}
{% load i18n static %}
{% else %}
{% if VERSIONS.DJANGO_GTE_2_1 %}
{% load i18n static %}
{% else %}
{% load i18n admin_static %}
{% endif %}
{% endif %}

{% block page-title %}{% trans "Dashboard" %}{% endblock page-title %}

Expand Down
5 changes: 2 additions & 3 deletions src/fobi/templates/fobi/admin/bulk_change_plugins.html
@@ -1,10 +1,9 @@
{% extends "admin/base_site.html" %}
{% if VERSIONS.DJANGO_GTE_2_1 %}
{% load i18n l10n static %}
{% load i18n l10n static admin_urls %}
{% else %}
{% load i18n l10n admin_static %}
{% load i18n l10n admin_static admin_urls %}
{% endif %}
{% load admin_urls %}

{% block title %}{% trans "Edit multiple objects" %} | {% trans 'Django site admin' %}{% endblock %}

Expand Down
24 changes: 23 additions & 1 deletion src/fobi/tests/data.py
Expand Up @@ -592,6 +592,17 @@
'}'
)
),
# (
# 'sample_decimal',
# (
# DecimalInputPlugin.uid,
# '{'
# '"name": "sample_decimal", '
# '"required": false, '
# '"label": "Sample decimal"'
# '}'
# )
# ),
(
'bio',
(
Expand Down Expand Up @@ -636,7 +647,7 @@
# ),
])

TEST_DYNAMIC_FORMS_DEFINITION_DATA_DRF = copy.copy(
TEST_DYNAMIC_FORMS_DEFINITION_DATA_DRF = copy.deepcopy(
TEST_DYNAMIC_FORMS_DEFINITION_DATA
)
TEST_DYNAMIC_FORMS_DEFINITION_DATA_DRF.pop('ignore_01')
Expand All @@ -661,6 +672,11 @@
'drivers_license': FAKER.pybool(),
'special_fields': FAKER.pystr(),
'number_of_children': FAKER.pyint(),
# 'sample_decimal': "%.5f" % FAKER.pydecimal(
# left_digits=3,
# right_digits=5,
# positive=True
# ),
'bio': FAKER.text(),
# 'unicode_name': u'Անուն',
}
Expand Down Expand Up @@ -697,6 +713,12 @@
(u'required', False),
(u'read_only', False),
(u'label', u'Number of children')])),
# (u'sample_decimal', OrderedDict([(u'type', u'decimal'),
# (u'required', False),
# (u'read_only', False),
# (u'label', u'Sample decimal'),
# ('max_digits', 10),
# ('decimal_places', 5)])),
(u'bio', OrderedDict([(u'type', u'string'),
(u'required', True),
# (u'max_length', None),
Expand Down
2 changes: 1 addition & 1 deletion src/fobi/tests/test_core.py
Expand Up @@ -9,7 +9,7 @@
get_registered_form_element_plugins,
get_registered_form_handler_plugins,
get_registered_themes,
get_registered_form_callbacks
get_registered_form_callbacks,
)
from fobi.models import FormEntry, FormWizardEntry
from fobi.forms import FormEntryForm
Expand Down

0 comments on commit 473df88

Please sign in to comment.