X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/730399e901c72a552011d6c0a35bf41492590a8b..5709ad98f0e529a37e858931e1ec2f37c3875dcf:/apps/catalogue/models/image.py diff --git a/apps/catalogue/models/image.py b/apps/catalogue/models/image.py index fffa4b38..8f044d3e 100755 --- a/apps/catalogue/models/image.py +++ b/apps/catalogue/models/image.py @@ -48,10 +48,14 @@ class Image(dvcs_models.Document): return ("catalogue_image", [self.slug]) def correct_about(self): - return "http://%s%s" % ( + return ["http://%s%s" % ( Site.objects.get_current().domain, self.get_absolute_url() - ) + ), + "http://%s%s" % ( + 'obrazy.redakcja.wolnelektury.pl', + self.get_absolute_url() + )] # State & cache # ============= @@ -86,8 +90,8 @@ class Image(dvcs_models.Document): raise AssertionError(_('Invalid Dublin Core') + ': ' + str(e)) valid_about = self.correct_about() - assert picture.picture_info.about == valid_about, \ - _("rdf:about is not") + " " + valid_about + assert picture.picture_info.about in valid_about, \ + _("rdf:about is not") + " " + valid_about[0] def publishable_error(self): try: