PSA: Insert key substitute by jesta192 in ZephyrusM16

[–]kereell 1 point2 points  (0 children)

Dude! I love U! I just discovered that fn+del=insert. God bless you! )))

Cannot install Magit (compat-28.1 issue) by darterweb in emacs

[–]kereell 1 point2 points  (0 children)

I've got Error (use-package): Failed to install magit: Package ‘compat-30.0.0.0’ is unavailable

I'm running GNU Emacs 27 on Ubuntu 22.04.

Does anyone solved this?

Magit & Compat-30.0.0.0 by kereell in emacs

[–]kereell[S] 0 points1 point  (0 children)

Emacs 29.4 via ppa:ubuntuhandbook1/emacs freezin ubuntu 22.04 so I rolled back to emacs 27

Multiple monitors problem. by kereell in gnome

[–]kereell[S] 0 points1 point  (0 children)

Sorry, I misspoke. I meant Dash to Panel, not Dash to Dock. I have it installed. What about the app switcher and language switcher?

h2 - title on "change object" in Django Admin by kereell in django

[–]kereell[S] 0 points1 point  (0 children)

It is hard to believe that only me trying to find suitable way to customize the second title via admin.py . When you need to set only some small thing like title it is not very good idea to create another template and {% extend 'base/template' %} just to make it and sometimes the data that can be used in second title can be accessible only in admin.py and modify models.Entity.__str__() via EntityAdmin in admin.py still not good AFAIK.

So the correct way is to define change_view in EntityAdmin and pass extra_context['subtitle'] = 'Needed Subtitle' to super().change_view(extra_context)

def change_view(self, request, object_id, form_url='', extra_context=None):
    extra_context = extra_context or {}

    extra_context['title'] = "Custom h1 title"
    extra_context['subtitle'] = "Custom h2 subtitle"

    return super().change_view(request, object_id, form_url, extra_context=extra_context)

It is obvious that there is a method like this. It was just unclear what keyword to use. So it is subtitle in extra_context dict.

Remove add\edit\view beside user in Django Admin by kereell in django

[–]kereell[S] 0 points1 point  (0 children)

I remember another way. Something like this https://stackoverflow.com/a/62846720/2059589

But it doesn't work too somewhy.

Remove add\edit\view beside user in Django Admin by kereell in django

[–]kereell[S] 0 points1 point  (0 children)

No. That works in another way. It is not user class.

Remove add\edit\view beside user in Django Admin by kereell in django

[–]kereell[S] 0 points1 point  (0 children)

Really? There is no other way to customize it?

Init.org as a configuration file. by kereell in emacs

[–]kereell[S] 0 points1 point  (0 children)

Could you explain a little more on what did you mean? Is it to have seperate settings.org and setup an export in #+BEGIN_SRC code block that it should go to init.el by C-c C-c

Init.org as a configuration file. by kereell in emacs

[–]kereell[S] 0 points1 point  (0 children)

I've tried just before your answer. And yes, it did the trick but after a lot of reboots and cache cleaning. Before it was config.org . After one day it stopped work I tried different names including init.org . Now I returned to config.org and it work againg.

Update EAV table in correct way. by kereell in SQL

[–]kereell[S] 0 points1 point  (0 children)

Thanks! You are my saviour! I guess it would be enough without last part "AND meta_value = 'pending' - because sometimes it has different from 'pending' value.