Changes between Version 1 and Version 2 of Ticket #27519
- Timestamp:
- Nov 21, 2016, 11:49:03 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27519
- Property Resolution needsinfo
- Property Status closed → new
-
Ticket #27519 – Description
v1 v2 1 1 Hi Team, 2 2 3 I am a Django developer. Here I am using Django 1.8.5 version to develop the application. I am facing one issue with Django model class. 3 I am a Django developer. I am using Django 1.8.5 version to develop my application. I am facing one issue with Django model class. I have one model class and it's returning a text value. If any invalid characters (eg:- '→' ) are included in this return text value, Django will throwing an error. Its huge impact on my application. 4 5 We have a UI interface to enter value to this model class. By mistake any user is entering invalid charactes or copy and pasting some text value from other sources, chances to include invalid characters into this field. I can see that by default Django doesn't have any validation for prevent this invalid characters. Instead of this, its directly throwing the error. 4 6 5 7 Below is one sample model class which I am using in my application, … … 20 22 }}} 21 23 22 The above model class is returning "Subgroup Name" as a value of that object. We have a our own admin interface area to enter this subgroup name and values for the above model class. If any invalid characters (eg:- '→' ) included in the subgroup name, Django will throw below error, while rendering this subgroup object in Django templates.24 The above model class "Subgroup Name" is the return value. We have a our own admin interface area to enter this subgroup name and values for the above model class. If any invalid characters (eg:- '→' ) included in the subgroup name, Django will throw below error 23 25 24 26 Error message: