Closed Bug 605633 Opened 15 years ago Closed 12 years ago

Remove migration-only functionality

Categories

(support.mozilla.org :: Code Quality, task, P3)

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: jsocol, Unassigned)

Details

We had to add a couple of tricks to the forums and questions models for the data migration, things that would let you override created and updated dates on the first save. Since the migration is long past, we should strip out those useless features and updated/remove the tests. I don't think we should go so far as to use auto_now and auto_now_add, since they are totally unoverrideable. (And Django flirts with removing them periodically.) Since 1) there are cases when we need to save without changing updated (see Question.save(update=False)) and 2) we already have the overridden .save() methods, for consistency I think we should stick to default=datetime.datetime.now().
I see the update= parameter still being used.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.