:py:mod:`oioioi.newsfeed.models` ================================ .. py:module:: oioioi.newsfeed.models Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: oioioi.newsfeed.models.News oioioi.newsfeed.models.NewsLanguageVersion .. py:class:: News(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Make subclasses preserve the alters_data attribute on overridden methods. .. py:attribute:: date .. py:method:: get_content(request=None) .. py:class:: NewsLanguageVersion(*args, **kwargs) Bases: :py:obj:`django.db.models.Model` Represents a content of a news. News may have multiple versions - each in another language. .. py:attribute:: news .. py:attribute:: language .. py:attribute:: title .. py:attribute:: content .. py:method:: rendered_content() .. py:method:: save(*args, **kwargs) Save the current instance. Override this in a subclass if you want to control the saving process. The 'force_insert' and 'force_update' parameters can be used to insist that the "save" must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.