Skip to content

Facilitates the condensation of objects in your Django apps, by moving relations to a canonical object and deleting the rest.

License

Notifications You must be signed in to change notification settings

MarcosASandoval/django-condenser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

django-condenser

Condenses duplicate or similar model entries in installed apps.

Sometimes your team doesn't realize that they have put in two entries into the database that should have really been just one. This allows you to pick the canonical entry and collapse all others into that one. All related objects that pointed to the objects that were deleted will now point to the canonical object left over.

An example is in order:

Say you have a model called School, when in use, the client puts in several schools as such:

  • Smalltown High
  • Smalltown High School
  • Smalltown High Bears

Even if you did your due diligence and made the name field unique, you can run into this scenario.

The idea is then to pick the right entry and have all others deleted. Any related models will then have their relationships changed to the one that's left over.

About

Facilitates the condensation of objects in your Django apps, by moving relations to a canonical object and deleting the rest.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages