Posts by Fabíola • 76 points
4 posts
-
0
votes1
answer40
viewsA: Valueerror: Cannot assign "<class 'calendario.models.Shopping'>": "Parceling.shopping" must be a "Shopping" instance
As for your first question, in your function of recording the data you do not store in a variable the object of the purchase you created, so in the line that is creating the Installment you are…
-
1
votes3
answers307
viewsA: How to save parts of a json in variable?
You can perform various manipulations using json objects. Thinking that the content of the HTTP response is a text (string) that contains a json that line of code below converts this text into a…
-
1
votes1
answer204
viewsA: How to compare two values of two different classes in Django
Is there a specific reason you’re using Uuidfield? If not, you’d better establish a relationship between the two Apps and Executionresults models. An example used in Jango’s own documentation of…
-
1
votes1
answer355
viewsA: Functioning Chained List
Tip: puts a print(self) inside the list insertion function, so you can better track its behavior: def insert_at_last_node(self, value): new_node = Node(value) print(self) if self.is_empty():…