dduk-ddak / coding-night-live

Web-based Communication Application for Codelabs
Other
62 stars 11 forks source link

next_id why not unique? #26

Closed juice500ml closed 7 years ago

juice500ml commented 7 years ago

https://github.com/dduk-ddak/coding-night-live/blob/master/manage_room/models.py#L62-L63 maybe carefully schedulling .save() timing will solve this?

punkyoon commented 7 years ago

.save()를 하지 않고 unique 필드로 지정된 값을 교환하는 과정에서 에러 발생. next_id를 unique 필드로 지정할 수 없음!