You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
# Django Case Insensitive Field
1
+
# Django Case Insensitive Model Field
2
2
3
3
4
-
Django Case Insensitive Field is used to make Django Model Field case insensitive - by default Django can't do this.
4
+
With Django Case Insensitive Field you can make Django Model Field case insensitive - by default Django can't do this which will make it impossible to add a unique field that will be case insensitive regardeless of case.
5
5
6
6
Let's assume you have a `username` field on your `UserModel` which ofcourse would require `username` to be unique accross the `table` but to Django `abc` is different from `ABC` because it is case sensitive (meaning: users can use the same username but with different case).
7
7
@@ -82,6 +82,10 @@ user2.save() # will not go through
82
82
83
83
```
84
84
85
+
# Note:
86
+
87
+
All values are converted to lowercase before insertion and extraction from database.
0 commit comments