Answer the question
In order to leave comments, you need to log in
Does Django out of the box have a similar functionality to the "nested attributes" mechanism from Ruby on Rails?
Good time of the day! Can you please tell me if there is a possibility in Django when receiving parameters from the client in the conditionally following format ...
product_params = {
'title': 'Название',
'properties': {
'1': {'title': 'свойство 1'},
'2': {'title': 'свойство 2'},
'3': {'title': 'свойство 3'},
}
}
...do two actions...product = Product(product_params)
product.save()
...and automatically save both product and properties. Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question