incuna/incuna-education — Issue #28: Absolute url uniqueness is BAAAAAD
Author: mjtamlyn
Created: 2012-02-02 15:00:07+00:00
State: open
Labels: Bugs

Scenario which will break stuff (more likely when using daemon for denorm):

1. Create and save a section, but the triggers have not yet run. The absolute url field on the section has value `''`, saved in the db.
2. Create another section before the denorm for the first runs. This tries to save another entry with absolute url `''`, causing a DB integrity error.

This could easily happen using `bulk_create` as well.

Basically, denormed fields should not be unique, or they need to be prefilled with the correct value.