9👍
✅
Calling serializer.save()
should return the instance that has just been create.
instance = serializer.save(...)
instance_id = instance.id
- [Django]-How can I display an jupyter notebook on a homepage built with django?
- [Django]-Django compare query with F objects adds extra not null check
- [Django]-Django app not found despite adding to INSTALLED_APPS?
- [Django]-Best practices: Good idea to create a new table for every user?
Source:stackexchange.com