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
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,13 +87,15 @@ students = Student.objects.order_by("pk").find(full_name__raw="*")
87
87
88
88
# Find students with exact match (equivalent to __exact)
89
89
student_john = Student.objects.find(full_name="John Doe") # Searches for exact match
90
-
students_of_2024_but_not_john = Student.objects.find(graduation_year=2024).omit(full_name="John Doe") # Searches for students graduating in 2024 but not named John Doe
if you use Float you can lose precision during reading both with Number and Text. (use Decimal or String if you need full precision)
3
+
if you use DateTime, if you have timezone information, you will lose timezone information while writing to FMFieldType.DateTime. If you write to FMFieldType.Text it will write the full ISO rappresentation of the datetime, so no timezone information will be lost.
4
+
if you use String -> FMFieldType.DateTime, the string has to be an ISO rappresentation. If it have timezone information, it will be lost.
5
+
if you use Container -> To update the container value, use model.update_container(container_name, file) the model.refresh_from_db()
6
+
if you use Bool -> set true_value=X, false_value=Y, to choose what to write in the field. Set truthy=[list of values considered true] and falsy=[list of values considered false] to choose what to consider true/false when reading from FM
0 commit comments