Skip to content

Commit

Permalink
Turn off push to old talks.
Browse files Browse the repository at this point in the history
Add talks.ox.ac.uk to list of known hosts
  • Loading branch information
ahaith committed Jan 19, 2016
1 parent 95e3f55 commit df66f29
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions talks/old_talks/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,22 @@ class OldSeries(models.Model):
old_series_id = models.CharField(max_length=20, null=False, blank=False)


@receiver(event_updated, sender=Event)
def publish_to_old_talks(sender, instance, *args, **kwargs):
from talks.old_talks.tasks import update_old_talks
update_old_talks(instance)


@receiver(eventgroup_updated, sender=EventGroup)
def update_series_old_talks(sender, instance, *args, **kwargs):
from talks.old_talks.tasks import update_old_series
update_old_series(instance, True)


@receiver(models.signals.post_delete, sender=Event)
def delete_old_talks(sender, instance, using, **kwargs):
from .tasks import delete_old_talks
delete_old_talks(instance)
# @receiver(event_updated, sender=Event)
# def publish_to_old_talks(sender, instance, *args, **kwargs):
# from talks.old_talks.tasks import update_old_talks
# update_old_talks(instance)
#
#
# @receiver(eventgroup_updated, sender=EventGroup)
# def update_series_old_talks(sender, instance, *args, **kwargs):
# from talks.old_talks.tasks import update_old_series
# update_old_series(instance, True)
#
#
# @receiver(models.signals.post_delete, sender=Event)
# def delete_old_talks(sender, instance, using, **kwargs):
# from .tasks import delete_old_talks
# delete_old_talks(instance)


def get_list_id(string):
Expand Down Expand Up @@ -136,4 +136,4 @@ def group_to_old_series(group):
description += "\n\n\nOrganisers: " + ", ".join([get_person_string(organiser) for organiser in group.organisers.all()])

data.append(('list[details]', description))
return data
return data
2 changes: 1 addition & 1 deletion talks/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

TEMPLATE_DEBUG = False

ALLOWED_HOSTS = ['talks-dev.oucs.ox.ac.uk', 'new.talks.ox.ac.uk']
ALLOWED_HOSTS = ['talks-dev.oucs.ox.ac.uk', 'new.talks.ox.ac.uk', 'talks.ox.ac.uk']

LOGIN_REDIRECT_URL = '/'

Expand Down

0 comments on commit df66f29

Please sign in to comment.