summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2023-04-06 18:36:47 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2023-04-17 15:47:16 +0200
commit71a256dc52ed3391638dcf9669cf57d75475d326 (patch)
tree422181b331fcd809a6c4a4316d76d960a248f4d5 /ishtar_common/models.py
parent59d92f268b2a002b006250258bdc54880e080013 (diff)
downloadIshtar-71a256dc52ed3391638dcf9669cf57d75475d326.tar.bz2
Ishtar-71a256dc52ed3391638dcf9669cf57d75475d326.zip
Display of a changelog with alert display when updates are made
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index efa061431..f7baebfe4 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -3416,6 +3416,10 @@ class IshtarUser(FullSearch):
advanced_shortcut_menu = models.BooleanField(
_("Advanced shortcut menu"), default=False
)
+ # latest news read by the user
+ latest_news_version = models.CharField(_("Latest news version"), default="", blank=True,
+ max_length=20)
+ display_news = models.BooleanField(_("Display news"), default=True)
class Meta:
verbose_name = _("Ishtar user")
@@ -3500,7 +3504,7 @@ class IshtarUser(FullSearch):
@post_importer_action
def import_create_profile(self, context, value):
UserProfile.objects.get_or_create(person=self.person, profile_type=value,
- defaults={"name":value.label})
+ defaults={"name": value.label})
post_save.connect(cached_label_changed, sender=IshtarUser)