Changes between Version 1 and Version 2 of Ticket #27519


Ignore:
Timestamp:
Nov 21, 2016, 11:49:03 PM (8 years ago)
Author:
Nitish Nandanan
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27519

    • Property Resolution needsinfo
    • Property Status closednew
  • Ticket #27519 – Description

    v1 v2  
    11Hi Team,
    22
    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.
     3I 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
     5We 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.
    46
    57Below is one sample model class which I am using in my application,
     
    2022}}}
    2123
    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.
     24The 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
    2325
    2426Error message:
Back to Top