make slug and titles non-mandatory
This commit is contained in:
parent
f2913dd8ac
commit
3dfa4b4956
3 changed files with 3 additions and 7 deletions
|
@ -279,7 +279,8 @@ class ChangeSet(models.Model):
|
|||
objects[model] = {pk: model(pk=pk) for pk in pks}
|
||||
|
||||
slug_submodels = tuple(model for model in object_pks.keys() if issubclass(model, LocationSlug))
|
||||
object_pks[LocationSlug] = reduce(operator.or_, (object_pks[model] for model in slug_submodels))
|
||||
if slug_submodels:
|
||||
object_pks[LocationSlug] = reduce(operator.or_, (object_pks[model] for model in slug_submodels))
|
||||
for model in slug_submodels:
|
||||
object_pks.pop(model)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue