26a27,29
> # Lookup table for table names introduced in order to prevent that users from declaring the same table twice
> db_table_lookup = {} 
> 
123a127,143
> 
>         # Prevent users from declaring the same table twice
>         def qualified_model_name(app_label, object_name):
> 
>             result = self.object_name
>             if self.app_label:
>                 result = '%s.%s' % (self.app_label, self.object_name)
> 
>             return result
> 
>         qname = qualified_model_name(self.app_label, self.object_name)
>         if self.db_table in db_table_lookup:
> 
>             raise Exception('db_table %s was already declared by %s and was redeclared by %s' 
>                 % (self.db_table, db_table_lookup[self.db_table], qname)) 
> 
>         db_table_lookup[self.db_table] = qname 
