Opened 9 years ago

Closed 9 years ago

#3380 closed (wontfix)

Add restore/backup action to the admin interface

Reported by: Charlax <ca.dein@…> Owned by: adrian
Component: contrib.admin Version: master
Severity: Keywords: admin restore backup db management
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: yes
Easy pickings: UI/UX:


First I'm sorry if there's any error in my submission. I am not used to submit a patch. In fact, it may well be the first time... On the other hand, I'm French so I could have misunderstand points in your guidelines.

My patch add a support for backup in the admin interface. It backups the current objects in the database, for a given table. It uses the cPickle module. It is useful for development server, when you want to add items to your table, and then want to add these writings to your real server, without having to use tools like phpmyadmin, ...

I would be happy if it helps somebody.

Attachments (1)

patch_django.diff (5.6 KB) - added by Charlax <ca.dein@…> 9 years ago.
Patch for adding restore and backup support in the admin interface

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Charlax <ca.dein@…>

Patch for adding restore and backup support in the admin interface

comment:1 Changed 9 years ago by Charlax <ca.dein@…>

  • Needs documentation unset
  • Needs tests set
  • Patch needs improvement set

comment:2 Changed 9 years ago by mir@…

  • Triage Stage changed from Unreviewed to Design decision needed

Nice idea, but I think it won't work when your database contains cyclic foreign key dependencies. In the most simple case, when a model has a reference on itself, you're lost, and I doubt that you can fix this unless you put in a *lot* of efforts.

Charlax, take a look at #2333, the part about fixtures is about a similar mechanism (but it's still work in progress).

comment:3 Changed 9 years ago by Charlax <ca.dein@…>

Ok, thanks a lot, I will try something else.

comment:4 Changed 9 years ago by Michael Radziej <mir@…>

  • Resolution set to wontfix
  • Status changed from new to closed

Then I close as wontfix ;-)

Note: See TracTickets for help on using tickets.
Back to Top