How can I delete duplicated users in django?
Posted
by Catalina
on Stack Overflow
See other posts from Stack Overflow
or by Catalina
Published on 2010-04-27T15:57:18Z
Indexed on
2010/04/27
17:03 UTC
Read the original article
Hit count: 211
Hi guys,
I need to delete duplicate users in django (by duplicate I mean two or more users with the same email).
If your instance there are three records like this:
id email 3 [email protected] 56 [email protected] 90 [email protected]
I need to delete records 56 and 90 and leave the oldest record id -> 3
Is there a way to quickly do this.
Thanks :)
© Stack Overflow or respective owner