Mirco
I don't understand what's your goal
Manish
okay. let me explain it.
Manish
i have an instance(data/object) of a model "A" and i want to move or copy that instance to another model "B" from admin panel. (by clicking a button of checking a checkbox or by any way)
Manish
you can make a custom script and add a button to the admin panel with the feature you want
i dont know exactly how to move or copy whole data from a table to another. that's why i am asking for prebuilt django admin function.
Adonis
can you tell me what to do.
Look in the doc Django admin actions
cj
can you tell me what to do.
Let me 🦆 DuckDuckGo that for you: 🔎 django add custom actions to admin
Adonis
https://docs.djangoproject.com/en/2.1/ref/contrib/admin/actions/
Manish
Let me 🦆 DuckDuckGo that for you: 🔎 django add custom actions to admin
seems i can do something. but what about database part.
Manish
i am really very bad with database.
Adonis
i am really very bad with database.
You mean you don't know how to use queryset API ?
Manish
i never used queryset
Adonis
just look here https://docs.djangoproject.com/en/2.1/ref/models/querysets/ all what you need to know about them
Manish
thanks a lot.
Mohit
Any idea how to deal with CORS error..? About the same question I have posted from stackoverfllow.. I installed django-cors-headers and added middleware and CORS_ORIGIN_ALLOW_ALL=True
Mohit
Still its throwing the same error
Adonis
what is the exact error ?
cj
my magic ball is on vacations 🤷🏻‍♂️
Mohit
what is the exact error ?
Can you pls check the stackoverfllow link
Adonis
send it pls
cj
Can you pls check the stackoverfllow link
magic ball still on vacations 🤷🏻‍♂️
Adonis
oh i saw it
cj
can you read the last part on the red text?
Adonis
yep AJAX and CORS does not work with WS protocl 😂😂😂
Mohit
Oh
Mohit
Ohh damn
cj
Oh
next time don't post a photography of the screen, use a screenshot tool or a code sharing service
Mohit
So any idea to do this? I want the chat box to take only part of the screen, Django channels
Mohit
Is this even possible?
Adonis
the chatbox ?
Mohit
Yes
Adonis
you mean the UI in which the chat happen ?
Mohit
Yes
Mohit
I use telegram on my phone
Mohit
How do I do a screen shot 🙈
Adonis
https://web.telegram.org/#/im?p=@django open this on you computer
Mohit
👌
Mohit
Please help with the other question
Adonis
i think you issues is more related to CSS style of you page, kind of (width, height) properties
Mohit
Its not CSS🤯... It works on a whole screen chat because im redirecting to that url which is same as the websocket connected url.. Its not possible when im using a chat box which only takes part of the screen.. And diffferent url
Adonis
am just talking from what i am getting
Adonis
from how you explain you problem
Mohit
Please excise me once more.. I'll show a pic
Mohit
Excuse
George
if you post a pic at least make a capture rather than using your phone
cj
Please excise me once more.. I'll show a pic
I remember I told you not to do that again
Mohit
What is the problem with posting a pic?
George
What is the problem with posting a pic?
THAT WE CANT FUCKING SEE IT PROPPERLY
Mohit
In my phone it is fairly visible
cj
What is the problem with posting a pic?
it's not user friendly, if it contains code, can't be copy/paste to try it out, texts are not clear, and most of the times there's a creepy guy reflected on the screen
Adonis
a "creepy guy" 😂😂😂😂😂
Mohit
Ok
George
also sometimes we can see traces of spit
Mohit
The important thing is can any of you answer my question or not
Adonis
personnally i din'd get you problem since !!
cj
The important thing is can any of you answer my question or not
questions can be answered if they are made in a good (and smart) way
Mohit
Did you understand my problem sir?
Mirco
What is the problem with posting a pic?
If there's a group rule, there's a properly reason why , so please follow that rule thanks 😁
Jimmies San
What is the problem with posting a pic?
unwanted shit on people device? :)
Jimmies San
and things like that ;)
Ghorz
Working on reservation system but find it difficult integrate interswitch payment as there is no nice documentation for interswitch.
Ghorz
No, its location based reservation. The only option is interswitch.
cj
that's sad
Anonymous
Hey so I've been messing with the auth system lately could someone tell me why should i inherit from AbstractBaseUser instead of AbstractUser ??? How whould that affect my email authentication