Lines Matching refs:first_field
47 def create_unique_index(manager, pivot_table, first_field, second_field): argument
50 (index_name, pivot_table, first_field, second_field))
54 old_index_name = basic_index_name(pivot_table, first_field)
59 def drop_unique_index(manager, pivot_table, first_field): argument
63 old_index_name = basic_index_name(pivot_table, first_field)
65 (old_index_name, pivot_table, first_field))
84 def cleanup_m2m_pivot(manager, pivot_table, first_field, first_table, argument
86 delete_duplicates(manager, pivot_table, first_field, second_field)
87 delete_invalid_foriegn_keys(manager, pivot_table, first_field, first_table)
94 create_unique_index(manager, pivot_table, second_field, first_field)
96 create_foreign_key_constraint(manager, pivot_table, first_field,
102 def reverse_cleanup_m2m_pivot(manager, pivot_table, first_field, second_field, argument
105 drop_foreign_key_constraint(manager, pivot_table, first_field)
125 for (table, first_field, first_table, second_field, second_table,
127 cleanup_m2m_pivot(manager, table, first_field, first_table,
132 for (table, first_field, first_table, second_field, second_table,
134 reverse_cleanup_m2m_pivot(manager, table, first_field, second_field,