@@ -0,0 +1,1282 @@
+# -*- coding: UTF-8 -*-%0A# Copyright 2015-2016 Luc Saffre%0A# License: BSD (see file COPYING for details)%0A%22%22%22Database models for :mod:%60extjs6%60.%0A%0A%22%22%22%0A%0Afrom __future__ import unicode_literals%0A%0Aimport logging%0A%0Alogger = logging.getLogger(__name__)%0A%0Afrom django.utils.translation import ugettext_lazy as _%0A%0Afrom lino.api import dd%0A%0Afrom lino.modlib.users.models import Users, UserDetail%0Afrom django.db import models%0A%0AEXTJS6_THEMES_CHOICES = (%0A    (%22theme-classic%22, %22Theme classic%22),%0A    (%22theme-aria%22, %22Theme Aria%22),%0A    (%22theme-classic%22, %22Theme Classic%22),%0A    (%22theme-classic-sandbox%22, %22Theme Classic Sandbox%22),%0A    (%22theme-crisp%22, %22Theme Crisp%22),%0A    (%22theme-crisp-touch%22, %22Theme crisp touch%22),%0A    (%22theme-gray%22, %22Theme gray%22),%0A    (%22theme-neptune%22, %22Theme neptune%22),%0A    (%22theme-neptune-touch%22, %22Theme neptune touch%22),%0A    (%22theme-triton%22, %22Theme triton%22),%0A)%0A%0Add.inject_field(%0A    'users.User', 'prefered_theme',%0A    models.CharField(_(%22Prefered theme%22), choices=EXTJS6_THEMES_CHOICES, default=%22%22, blank=True, max_length=25))%0A%0A%0Aclass ThemedUserDetail(UserDetail):%0A    box1 = %22%22%22%0A        username profile:20 partner%0A        first_name last_name initials%0A        email language timezone prefered_theme%0A        id created modified%0A        %22%22%22%0A%0A%0AUsers.set_detail_layout(ThemedUserDetail())%0A

Add the prefered_theme field for User model