Beispiel #1
0
 def view_response(self):
     if not self.has_tables():
         messages.info(
             self.request,
             _("You don't have any tables defined yet - create tables to view them."
               ))
         return HttpResponseRedirect(fixtures_home(self.domain))
     else:
         return super(FixtureViewInterface, self).view_response
Beispiel #2
0
 def view_response(self):
     if not self.has_tables():
         messages.info(self.request, _("You don't have any tables defined yet - create tables to view them."))
         return HttpResponseRedirect(fixtures_home(self.domain))
     else:
         return super(FixtureViewInterface, self).view_response