diff --git a/requirements.txt b/requirements.txt index e902eb73..fcb58927 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,6 +4,8 @@ django-debug-toolbar>=1.6 dj-database-url>=0.4.2 django-compressor>=2.1 django-compressor-toolkit>=0.6.0 +django-constance>=2.2.0 +django-picklefield>=1.0.0 django-bower>=5.2.0 django-cors-headers>=2.0.0 python3-openid>=3.0.10 diff --git a/wikilegis/accounts/backends.py b/wikilegis/accounts/backends.py index 040a7db7..d1fc0c87 100644 --- a/wikilegis/accounts/backends.py +++ b/wikilegis/accounts/backends.py @@ -18,6 +18,7 @@ def authenticate(self, remote_user, request=None): ) if created: - user.first_name = remote_user_data['name'] + user.first_name = remote_user_data['first_name'] + user.last_name = remote_user_data['last_name'] return user diff --git a/wikilegis/core/templates/amendments/_comments.html b/wikilegis/core/templates/amendments/_comments.html index caeec37f..21e37859 100644 --- a/wikilegis/core/templates/amendments/_comments.html +++ b/wikilegis/core/templates/amendments/_comments.html @@ -13,7 +13,7 @@ {% elif amendment.bill_is_closed %}
-

{% trans "This project is closed for participations." %}

+

{{ config.CLOSED_TEXT }}

{% else %}
diff --git a/wikilegis/core/templates/amendments/_content.html b/wikilegis/core/templates/amendments/_content.html index d7c9a72e..434e4920 100644 --- a/wikilegis/core/templates/amendments/_content.html +++ b/wikilegis/core/templates/amendments/_content.html @@ -23,7 +23,7 @@ {% elif segment.bill.status == 'closed' %}
-

{% trans "This project is closed for participations." %}

+

{{ config.CLOSED_TEXT }}

{% endif %} diff --git a/wikilegis/core/templates/bill/_content.html b/wikilegis/core/templates/bill/_content.html index ce0de6b9..d8a65952 100644 --- a/wikilegis/core/templates/bill/_content.html +++ b/wikilegis/core/templates/bill/_content.html @@ -3,7 +3,8 @@