django
django error intergrityError UNIQUE constraint field
sraa
2016. 12. 14. 22:05
django error intergrityError UNIQUE constraint field
오브젝트를 생성할때 objects.create 로 생성하면 에러날때가 있음
merchant_obj, created =UserMerchantId.objects.get_or_create(user=request.user)