Loading AUTHORS +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ answer newbie questions, and generally made Django that much better: Matt Croydon <http://www.postneo.com/> Jonathan Daugherty (cygnus) <http://www.cprogrammer.org/> Jason Davies (Esaj) <http://www.jasondavies.com/> Alex Dedul deric@monowerks.com Jeremy Dunck <http://dunck.us/> Clint Ecker Loading django/db/models/options.py +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ from bisect import bisect import re # Calculate the verbose_name by converting from InitialCaps to "lowercase with spaces". get_verbose_name = lambda class_name: re.sub('([A-Z])', ' \\1', class_name).lower().strip() get_verbose_name = lambda class_name: re.sub('(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))', ' \\1', class_name).lower().strip() DEFAULT_NAMES = ('verbose_name', 'db_table', 'ordering', 'unique_together', 'permissions', 'get_latest_by', Loading Loading
AUTHORS +1 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ answer newbie questions, and generally made Django that much better: Matt Croydon <http://www.postneo.com/> Jonathan Daugherty (cygnus) <http://www.cprogrammer.org/> Jason Davies (Esaj) <http://www.jasondavies.com/> Alex Dedul deric@monowerks.com Jeremy Dunck <http://dunck.us/> Clint Ecker Loading
django/db/models/options.py +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ from bisect import bisect import re # Calculate the verbose_name by converting from InitialCaps to "lowercase with spaces". get_verbose_name = lambda class_name: re.sub('([A-Z])', ' \\1', class_name).lower().strip() get_verbose_name = lambda class_name: re.sub('(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))', ' \\1', class_name).lower().strip() DEFAULT_NAMES = ('verbose_name', 'db_table', 'ordering', 'unique_together', 'permissions', 'get_latest_by', Loading