Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow one or more BlackoutPeriods for any Venue (re #51) #76

Merged
merged 1 commit into from
Jan 18, 2012

Conversation

jimallman
Copy link

As requested, a blackout period can begin or end at any time of the day.

@jimallman
Copy link
Author

re #51: These changes were in response to the "Venue blackout dates" ticket.

mhrivnak added a commit that referenced this pull request Jan 18, 2012
Allow one or more BlackoutPeriods for any Venue (re #51)
@mhrivnak mhrivnak merged commit 38a60e9 into TireSwingSoftware:dev Jan 18, 2012
"""
blame = PRForeignKey(Blame, null=True)
venue = PRForeignKey(Venue, related_name='blackout_periods')
start = models.DateField()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These will both need to be changed to DateTimeField so they can store time of day. Interestingly, a unit test is failing as a result, but I think it will only fail during certain times of the day! I believe it will fail any time 2 hours and 12 hours into the future are both on the same day.

======================================================================
FAIL: test_get_available_venues (pr_svc_tests.tests_svc.TestVenueManagerSvc)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/mhrivnak/git/openassign-server/pr_svc_tests/tests_svc.py", line 1032, in test_get_available_venues
    self.assertEquals(len(ret['value']), 1)
AssertionError: 2 != 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants