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
3
Example 1
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