diff --git a/djangocms_picture/models.py b/djangocms_picture/models.py index 6b0b993..47e9a5c 100644 --- a/djangocms_picture/models.py +++ b/djangocms_picture/models.py @@ -25,7 +25,10 @@ def get_alignment(): ('left', _('Align left')), ('right', _('Align right')), ('center', _('Align center')), - + ('ltr', _('Left-to-Right')), + ('rtl', _('Right-to-Left')), + ('top', _('Top Aligned')), + ('bottom', _('Bottom Aligned')), ) ) return alignment diff --git a/tests/test_models.py b/tests/test_models.py index 0b7c2ad..76017a2 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -68,7 +68,7 @@ def test_settings(self): self.assertEqual(PICTURE_RATIO, 1.6180) self.assertEqual( get_alignment(), - (('left', 'Align left'), ('right', 'Align right'), ('center', 'Align center')), + (('left', 'Align left'), ('right', 'Align right'), ('center', 'Align center'),('ltr', ('Left-to-Right')),('rtl', ('Right-to-Left')),('top', ('Top Aligned')),('bottom', ('Bottom Aligned'))), ) def test_picture_instance(self):