Re: Request for closing #25139 -- ModelFormSet: allow swapping unique values

2019-08-15 Thread PARTH PATIL
Yup sounds right. On Thursday, August 15, 2019 at 3:13:23 PM UTC+5:30, Carlton Gibson wrote: > > Hi Parth. > > Thanks for looking at this. I think you're right that there's no (suitably > obvious at least to me) simple way of solving this. I guess that's why it's > sat there for 4 years.  >

Re: Request for closing #25139 -- ModelFormSet: allow swapping unique values

2019-08-15 Thread Carlton Gibson
Hi Parth. Thanks for looking at this. I think you're right that there's no (suitably obvious at least to me) simple way of solving this. I guess that's why it's sat there for 4 years.  What would it take: fetching the set of to_be_unique values and comparing it to the set of values

Request for closing #25139 -- ModelFormSet: allow swapping unique values

2019-08-11 Thread PARTH PATIL
Hey can someone please have look at this ticket, I feel the requested feature is not really feasible to implement, also it's not applicable in the general case. I don't think so this is feasible, this will require n(n-1)/2 comparisons to determine whether any two of the models are swapped.