Skip to content

Commit

Permalink
[#1714] Fixed CI and cleaned model
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van der Schoor committed Sep 19, 2023
1 parent 2c26a90 commit c96b85f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions src/open_inwoner/media/models/video.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
from open_inwoner.utils.text import middle_truncate


class VideoManager(models.Manager):
pass


class Video(models.Model):
link_id = models.CharField(
_("video ID"),
Expand Down Expand Up @@ -37,8 +33,6 @@ class Video(models.Model):
default=settings.LANGUAGE_CODE,
)

objects = VideoManager()

class Meta:
verbose_name = _("Video")
ordering = ("title",)
Expand Down
2 changes: 1 addition & 1 deletion src/open_inwoner/media/tests/test_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class VideoTests(TestCase):
def test_str(self):
video = VideoFactory.build(link_id="123", title="Anne")
self.assertEqual(str(video), "Anne (123, nl)")
self.assertEqual(str(video), "Anne (vimeo: 123, nl)")

def test_str_no_title(self):
video = VideoFactory.build(link_id="123", title="")
Expand Down

0 comments on commit c96b85f

Please sign in to comment.