Xyz
Has anyone tried implementing social authentication with djoser?
None
I create new class class AllBirthdayPage(Page):
class Meta:
verbose_name = _('All Birthday Page')
verbose_name_plural = _('All Birthday Pages')
And added to list of type page. When I try to create new page with this type I get 404
None
and yes I did makemigrations,migrate
Rajjix
Then don’t create a new page with this type. problem solved 🤷♂️
Rajjix
Smart boy 👍
Adil
Hello everyone. İve been learning django not for a long time. What projects can u advice me to work on?
Rajjix
Isn’t it just bad when ur learning something but you don’t know why you’re learning it?
Anonymous
Can't say if it's bad
Anonymous
But, it's not good
Adil
Sometimes you just get of of ideas
Vladyslav 🇺🇦🇪🇺
Hey folks
Vladyslav 🇺🇦🇪🇺
Need to complete project for crm on django. Can anyone do something like that?
Vladyslav 🇺🇦🇪🇺
Need opensourse project for a base
Adil
Adil
ive made a few simple applications for own use, but a bit stuck of what to do
Anders (izzno / gooood) 🇳🇴
Can anyone reccomend a good note/snippet taking app with tags and some sort og categotizing thats cross plattform. Something I can use as a sysadmin and for coding?
Anonymous
Dynalist
George
Good afternoon, i got a question:
How do you put the id of the object in a django form?
I can only put a single field
i get this:
<option value="Value1">Value1</option>
i want this:
<option value="pk of value1">Value1</option>
my form is
class SelectForm(forms.Form):
name = forms.ModelChoiceField(queryset=Object1.objects.values_list('name', flat=True))
George
i may have to mess with templates 🤔
George
im hungry and im thinking badly xD
Mirco
Get pks and names from your model , not just names
Anonymous
https://www.youtube.com/playlist?list=PL-osiE80TeTtoQCKZ03TU5fNfx2UY6U4p
Anonymous
Refer this its like a twitter based Project you will know the ins and out of the framework
George
George
i tried but it broke
Xyz
Mirco
Anders (izzno / gooood) 🇳🇴
Google keep
google, no way ;)
Anders (izzno / gooood) 🇳🇴
Try this one
Thanks, i saw that, but Id like json.
Anders (izzno / gooood) 🇳🇴
I know there are widgets, I thought it was in the grapelli extension. I does not matter much as I did not like the extension hehe.
Anders (izzno / gooood) 🇳🇴
Its easier for "others" to query json that the HStore fields.
Anders (izzno / gooood) 🇳🇴
(and it only supports strings)
George
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
with JS ?
George
https://hastebin.com/xuwadefefe.rb
George
js would be a really dirty patch
Anders (izzno / gooood) 🇳🇴
Your not getting the ID ?
George
Anders (izzno / gooood) 🇳🇴
have you looked at forms.Form ?
George
Anders (izzno / gooood) 🇳🇴
yes, does it usually have the PK / ID
George
Anders (izzno / gooood) 🇳🇴
I dont get it...
Anders (izzno / gooood) 🇳🇴
You want the PK to show up in the form ?
George
George
Good afternoon, i got a question:
How do you put the id of the object in a django form?
I can only put a single field
i get this:
<option value="Value1">Value1</option>
i want this:
<option value="pk of value1">Value1</option>
my form is
class SelectForm(forms.Form):
name = forms.ModelChoiceField(queryset=Object1.objects.values_list('name', flat=True))
Anders (izzno / gooood) 🇳🇴
ahh
Anders (izzno / gooood) 🇳🇴
can you use prefill and template logic ?
Anders (izzno / gooood) 🇳🇴
or rather have you tried
George
Anders (izzno / gooood) 🇳🇴
I ment pre populate
Anders (izzno / gooood) 🇳🇴
This might have nothing to do with your issue but would not popping 'spectrum' remove it from your super init?
George
Anders (izzno / gooood) 🇳🇴
yes but .pop also removes it from the dictionary? Right ?
Anders (izzno / gooood) 🇳🇴
sure, sorry I could not be of any help. I missunderstood your original question.
ozan
Which website use django?
ozan
Popular websites
George
😡
Anders (izzno / gooood) 🇳🇴
Anders (izzno / gooood) 🇳🇴
Default admin widget anyway.
Mirco
Open a ticket to Django 😂
Anders (izzno / gooood) 🇳🇴
But there are widgets out there. I will have a look at them. I was just trying the "itallian named theme" thingy.
Mirco
George
George
it's ok as it is
Mirco
Ook
Anders (izzno / gooood) 🇳🇴