systems.models.RelengDistro.objects.get

Here are the examples of the python api systems.models.RelengDistro.objects.get taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Examples 7

Example 1

Project: inventory Source File: relengdistro_handler.py
Function: delete
    def delete(self, request, releng_distro_id=None):
        try:
            rd = RelengDistro.objects.get(pk=releng_distro_id)
            rd.delete()
            resp = rc.DELETED
            resp.write('Record Deleted')
        except:
            resp = rc.NOT_FOUND

        return resp