Merge "Avoid AttributeError: SecurityGroup error handle"

This commit is contained in:
Jenkins
2014-05-02 09:38:11 +00:00
committed by Gerrit Code Review

View File

@@ -55,7 +55,10 @@ class DetailView(tables.DataTableView):
redirect=redirect)
def get_data(self):
return self._get_data().rules
data = self._get_data()
if data is None:
return []
return data.rules
def get_context_data(self, **kwargs):
context = super(DetailView, self).get_context_data(**kwargs)