1
Try (use actual class name rather than a string):
class ServerNotificationMapping(models.Model):
server = models.ForeignKey('Server', related_name = 'servers')
notification = models.ForeignKey(Notification,related_name = 'notifications')
class Meta:
unique_together = (("server", "notification"),)
Source:stackexchange.com