Since fixtures store things by id, there's a chance that by creating a
fixture for a menu option and then restoring it later that one of several
things may have changed id.
1. Site - not as likely as it would require numbers to be altered in
settings files all over the place;
2. ContentType - potentially quite likely as this is easy to forget about
when backing things up and running syncdb doesn't guarantee that everything
will be created in the same order especially if the original database was
built up by adding apps at infrequent intervals;
3. Permission - very likely as new ones can be added at any time and
they'll just take the next available id (which may not be near the others
from their ContentType) however when running syncdb on a fresh install they
will all be in a block together;
To combat unexpected surprises there should be some other way allowed for
storing these i.e. permissions can be stored in the form of app.perm as you
would use in code. There should also be a way to reverse the storage, and
some easily accessible commands/interfaces for performing backup and
restoration.
Original issue reported on code.google.com by greatlemer@gmail.com on 19 May 2009 at 10:58
Original issue reported on code.google.com by
greatlemer@gmail.com
on 19 May 2009 at 10:58