diff --git a/RIGS/models.py b/RIGS/models.py index 39fa31bd..4c50531a 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -281,7 +281,7 @@ class EventManager(models.Manager): return event_count -@reversion.register(follow=['items'], ignore_duplicates=True) # TODO Would be better to find why duplicates are created... +@reversion.register(follow=['items'])#, ignore_duplicates=True) # TODO Would be better to find why duplicates are created... class Event(models.Model, RevisionMixin): # Done to make it much nicer on the database PROVISIONAL = 0 diff --git a/RIGS/tests/pages.py b/RIGS/tests/pages.py index cf366e8e..18450cf7 100644 --- a/RIGS/tests/pages.py +++ b/RIGS/tests/pages.py @@ -17,7 +17,7 @@ class Index(BasePage): class Rigboard(BasePage): URL_TEMPLATE = reverse('rigboard') - _add_item_selector = (By.XPATH, "//a[contains(., 'New')]") + _add_item_selector = (By.XPATH, "//a[contains(@class,'btn-primary') and contains(., 'New')]") _event_row_locator = (By.ID, 'event_row') def add(self):