Skip to content

Commit 85db757

Browse files
committed
Added a patch for a faker problem with locale ro_RO names (default first_names from a region without first_names explicitly declared are returned as str instead of unicode under python 2.7, joke2k/faker#684)
- Legacy-Id: 14645
1 parent 838ad9c commit 85db757

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

ietf/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -930,6 +930,7 @@ def skip_unreadable_post(record):
930930
CHECKS_LIBRARY_PATCHES_TO_APPLY = [
931931
'patch/fix-django-unicode-comparison-bug.patch',
932932
'patch/fix-unidecode-argument-warning.patch',
933+
'patch/fix-faker-provider-ro-RO-string.patch',
933934
]
934935

935936
STATS_NAMES_LIMIT = 25
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- faker/providers/person/ro_RO/__init__.py.old 2018-02-16 04:57:48.915570971 -0800
2+
+++ faker/providers/person/ro_RO/__init__.py 2018-02-16 04:57:51.243625893 -0800
3+
@@ -104,6 +104,8 @@
4+
'Vasilică', 'Veniamin', 'Vicențiu', 'Victor', 'Vincențiu', 'Viorel', 'Visarion', 'Vlad', 'Vladimir', 'Vlaicu',
5+
'Voicu', 'Zamfir', 'Zeno')
6+
7+
+ first_names = first_names_male + first_names_female
8+
+
9+
# sources: https://ro.wikipedia.org/wiki/Lista_celor_mai_uzuale_nume_de_familie#Rom%C3%A2nia
10+
last_names = (
11+
'Aanei', 'Ababei', 'Albu', 'Ardelean', 'Barbu', 'Cristea', 'Diaconescu', 'Diaconu', 'Dima', 'Dinu', 'Dobre',

0 commit comments

Comments
 (0)