181 | | (style.SQL_KEYWORD('SELECT'), |
182 | | style.SQL_FIELD('%s_%s_seq' % (model._meta.db_table, f.column)), |
183 | | style.SQL_KEYWORD('SELECT'), |
184 | | style.SQL_FIELD(quote_name(f.column)), |
185 | | style.SQL_KEYWORD('FROM'), |
186 | | style.SQL_TABLE(quote_name(model._meta.db_table)))) |
| 181 | ('SELECT', |
| 182 | '%s_%s_seq' % (model._meta.db_table, f.column), |
| 183 | 'SELECT', |
| 184 | quote_name(f.column), |
| 185 | 'FROM', |
| 186 | quote_name(model._meta.db_table))) |
190 | | (style.SQL_KEYWORD('SELECT'), |
191 | | style.SQL_FIELD('%s_id_seq' % f.m2m_db_table()), |
192 | | style.SQL_KEYWORD('SELECT'), |
193 | | style.SQL_FIELD(quote_name('id')), |
194 | | style.SQL_KEYWORD('FROM'), |
195 | | style.SQL_TABLE(f.m2m_db_table()))) |
| 190 | ('SELECT', |
| 191 | '%s_id_seq' % f.m2m_db_table(), |
| 192 | 'SELECT', |
| 193 | quote_name('id'), |
| 194 | 'FROM', |
| 195 | f.m2m_db_table())) |