Updated in line with contrib/admin/templatetags/admin_modify.py which suggests the context may or may not have a "show_delete" key
Migration for new model elements

Signed-off-by: David Greaves <david.greaves@jolla.com>
There should only be one webhook for any given project/package
The default should be to trigger builds

Signed-off-by: David Greaves <david.greaves@jolla.com>
Don't use the deprecated 'from' form

Signed-off-by: David Greaves <david.greaves@jolla.com>
It's a BuildServiceSerializer, not a BuildService class
Add the api-auth url to enable logging in to the api view
Use a read-write model for the view

Signed-off-by: David Greaves <david.greaves@jolla.com>
Add fields to handle serialising the WebHookMapping
obs can only be referred to by namespace and must exist
user is accessed by username and must exist
lsr is returned as nested json and cannot be modified/created in PUT

Signed-off-by: David Greaves <david.greaves@jolla.com>