Skip to content

Commit

Permalink
Added picture align features
Browse files Browse the repository at this point in the history
Signed-off-by: eknath.baravkar <[email protected]>
  • Loading branch information
baravkareknath committed Oct 30, 2023
1 parent d910b95 commit 6c515f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion djangocms_picture/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6c515f0

Please sign in to comment.