Kaio
It worked.. the only problem is when I go to the "next page" the results are non-filtered anymore
Kaio
but it's a beginning
Kaio
/?page=2
inchidi
looks like you need an offtopic group, please continue this conversation at @pythonofftopic
{°_°}
Ok guyz any tip on multiple user type example? Or tutorial?
inchidi
/?page=2
weird, maybe you can try debug your returned queryset at get_queryset()
inchidi
Ok guyz any tip on multiple user type example? Or tutorial?
https://simpleisbetterthancomplex.com/tutorial/2018/01/18/how-to-implement-multiple-user-types-with-django.html
Rohan
No C
I hope you read the messages below it
Ghorz
I hope you read the messages below it
I did pure functional programming in C not oop
Rohan
I did pure functional programming in C not oop
I like OOP tho, but well; to each, their own :)
Rohan
Someone advertised the group?
Rohan
?
Few people joined at almost similar time
Rohan
Not that it's bad, but just saying
Ghorz
That's strange
Finally solved, here is how I solved it https://dpaste.de/W7MQ#L14
inchidi
Finally solved, here is how I solved it https://dpaste.de/W7MQ#L14
uh why it looks so weird? do you really need the Twitter.results = self.results part?
Ghorz
why you do that?
https://dpaste.de/1weV#L14
Ghorz
All others did not
Ghorz
By default result will revert to None
inchidi
then why Twitter.results and not self.results
Ghorz
Have tried it earlier
inchidi
By default result will revert to None
so some part in FormView change the self.results value?
Ghorz
so some part in FormView change the self.results value?
@Mirco helped but the results variable reverts to None in get_context_data
Ghorz
That was the only solution
inchidi
That was the only solution
can you try this instead? https://dpaste.de/EJGN
Michael
Is someone here using Django Eventstream and could help me with resolving an issue I seem to have?
Michael
I am trying to pass a dict for view-kwargs to the channelmanager, but only the named groups from my URL re show up, the dict I defined is not incorporated.
Krishna Praneeth
can anyone help.i am getting this error
Krishna Praneeth
AttributeError: module 'django.forms' has no attribute '_errors'
Arthur
No module crispy_forms
Arthur
Help me out with this I'm getting this error
tk
Which one is good to get job in india angular or phone or Python
tk
Sorry php
tk
No one there to help me
Ejas
guys... How to perform multiple forms actions in same page
Mike
javascript preventDefault() or django formsets
Vladyslav 🇺🇦🇪🇺
folks
Vladyslav 🇺🇦🇪🇺
need help
Vladyslav 🇺🇦🇪🇺
(
Vladyslav 🇺🇦🇪🇺
how i can make django url from js? i jave {% some_url %} and i have some argument that i want to give to url
Vladyslav 🇺🇦🇪🇺
i got '<a href="{% url 'index-to-view' '+id+' %}">' + name + '</a>' url in js
Vladyslav 🇺🇦🇪🇺
i cant give django url argument whis way 🙁
Mike
arguments sends direct in url example/4, 4 is argument for your view
George
But, do you really need it?
George
You could inject the endpoints in a form for example and call them from js.
Vladyslav 🇺🇦🇪🇺
I MADE IT
Vladyslav 🇺🇦🇪🇺
search field on frontend that can search 3 models and returns 3 different views for eash models
Vladyslav 🇺🇦🇪🇺
jesus
Vladyslav 🇺🇦🇪🇺
its coolest then google search field that cat return only 1 model
Mi
Hey guys, which would be the best way to render an object with only the model field verbose name and help text for each field of a given model?
Mi
If you think it is, maybe I've not explained well myself
George
Maybe its automatic
Mi
I mean to use these labels to create forms in a frontend, similar to using json schema
Mi
Really?
George
Create the form and just {{form}}
Mi
I mean with django rest, sorry
George
😭
Mi
I've had to add a custom serializer and a retrieve view
Mi
But I don't like it a bit
George
Idk
Mi
At least it's not trivial 😅
乌卡帕拉
Using views ( ? )
thank u, mirco, already solve it 😀
Trev
Hey folks. I want to iterate over an entire model and collect a total count on some of the data in each entry and display it on the admin page. Would this be a function I can run from admin.py for the model?
Luis
Hey folks. I want to iterate over an entire model and collect a total count on some of the data in each entry and display it on the admin page. Would this be a function I can run from admin.py for the model?
You can define functions in ModelAdmin classes and use it in list_fields. Also, you can use annotate, values, Sum, Count and other functions to compute this "extra" data.