Merge pull request #487 from endeepak/fix472

#472 : Fix oracle exception
This commit is contained in:
Omer Katz 2015-06-13 14:53:02 +03:00
commit 29c31780c6
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ class QueueManager(models.Manager):
def select_for_update(qs):
if connection.vendor == 'oracle':
return qs
try:
return qs.select_for_update()
except AttributeError: