{"action":"created","issue":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/2547","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/2547/labels{/name}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/2547/comments","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/2547/events","html_url":"https://github.com/tomchristie/django-rest-framework/issues/2547","id":57329026,"number":2547,"title":"`unique_together` constrain should let create a model if one of the envolved fields could be `blank`  ","user":{"login":"spac3-monkey","id":10178237,"avatar_url":"https://avatars.githubusercontent.com/u/10178237?v=3","gravatar_id":"","url":"https://api.github.com/users/spac3-monkey","html_url":"https://github.com/spac3-monkey","followers_url":"https://api.github.com/users/spac3-monkey/followers","following_url":"https://api.github.com/users/spac3-monkey/following{/other_user}","gists_url":"https://api.github.com/users/spac3-monkey/gists{/gist_id}","starred_url":"https://api.github.com/users/spac3-monkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spac3-monkey/subscriptions","organizations_url":"https://api.github.com/users/spac3-monkey/orgs","repos_url":"https://api.github.com/users/spac3-monkey/repos","events_url":"https://api.github.com/users/spac3-monkey/events{/privacy}","received_events_url":"https://api.github.com/users/spac3-monkey/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/labels/Needs%20further%20review","name":"Needs further review","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-11T15:18:58Z","updated_at":"2015-09-16T02:30:48Z","closed_at":null,"body":"When having a model with `unique_together` constrain involving two fields and one of the fields could be left `blank` it throws an error like \"This field is required.\"\r\n\r\nthe code and test case here: http://pastebin.com/0HNqzJii\r\n\r\nthanks in advance."},"comment":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/comments/140607059","html_url":"https://github.com/tomchristie/django-rest-framework/issues/2547#issuecomment-140607059","issue_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/2547","id":140607059,"user":{"login":"jamesdoherty","id":943116,"avatar_url":"https://avatars.githubusercontent.com/u/943116?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesdoherty","html_url":"https://github.com/jamesdoherty","followers_url":"https://api.github.com/users/jamesdoherty/followers","following_url":"https://api.github.com/users/jamesdoherty/following{/other_user}","gists_url":"https://api.github.com/users/jamesdoherty/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesdoherty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesdoherty/subscriptions","organizations_url":"https://api.github.com/users/jamesdoherty/orgs","repos_url":"https://api.github.com/users/jamesdoherty/repos","events_url":"https://api.github.com/users/jamesdoherty/events{/privacy}","received_events_url":"https://api.github.com/users/jamesdoherty/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T02:30:48Z","updated_at":"2015-09-16T02:30:48Z","body":"@xordoquy I've run into a similar problem where one of the fields in the unique_together constraint is populated via a perform_create method. It doesn't appear possible to do that, so I've had to remove the constraint."}}