gc2gh / django-newsroom

Automatically exported from code.google.com/p/django-newsroom
Other
0 stars 0 forks source link

relatedcontent on stories should have constraint #68

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
as is on the story model the same object can be related to a story more than 
one.  We probably 
want to create a unique key constraint on the relatedcontent model so this is 
not possible, there is 
no reason I can forsee the same object needs to be related to a story more than 
once.  

This came up while fixing a bug in editing stories media. Media was being 
re-created rather than 
edited/saved.

Original issue reported on code.google.com by mand...@gmail.com on 5 Jul 2009 at 5:43