- return self.slug, self.language == other.slug, other.language
-
- def filename_stem(self):
- stem = self.slug
- if self.language != self.DEFAULT_LANGUAGE:
- stem += '_' + self.language
- return stem
-
- def validate_language(self, language):
- if language != self.language:
- raise ValidationError("Incorrect language definition in URI")