Re: Help

2021-06-07 Thread Software, Web Developer
Can you inbox me @my email so that we can discuss please

On Mon, Jun 7, 2021, 20:17 Inside Believer  wrote:

> Thank you *mondaj...@gmail.com  *  for which time u
> can give me I'm from Pakistan. My office timing is 6 PM to 3 AM
>
> On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:
>
>> Sir I'm internee i know python my company has assigned me bugs to resolve
>> in live project but i have not didn't experience of Django. Anyone who can
>> help me how to find bugs destination and how to resolve. i can pay for this
>> i want to be expert in 1 month because i'm in probations period.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADFHYGQvojMRObyXDquiB-HRpgyb3R%3DwvPOvUipLozb7cOKOiA%40mail.gmail.com.


Re: Support for moving a model between two Django apps #24686

2021-06-07 Thread Lalit Suthar
oh great, good luck with that :D

cheers!

On Mon, 7 Jun 2021 at 19:40, Mike Dewhirst  wrote:

> Ok - fair enough. On the other hand we do use the Admin extensively and
> because we made a mistake during design which we would like to fix, we want
> to move a couple of models from one app to another.
>
> Ticket #24686 looks brilliant and might be implemented in the dev version
> of Django.
>
> Maybe I'll give it a try.
>
> Cheers
>
> Mike
>
> --
> (Unsigned mail  from my phone)
>
>  Original message 
> From: Lalit Suthar 
> Date: 7/6/21 22:38 (GMT+10:00)
> To: django-users@googlegroups.com
> Subject: Re: Support for moving a model between two Django apps #24686
>
> It does look long and weird but we hardly visit /admin since we do most of
> the operations from python manage.py shell
>
> On Fri, 4 Jun 2021 at 11:42, Mike Dewhirst  wrote:
>
>> On 4/06/2021 2:28 pm, lalit suthar wrote:
>> > We had a similar problem and we resolved it by moving all the models
>> > into a separate internal python package.
>> > We can have a separate app in our django project also for writing
>> > models only and all other apps import models from there.
>>
>> Interesting.
>>
>> What does the main menu of the Admin look like?
>>
>>
>> >
>> > On Friday, 4 June 2021 at 06:07:53 UTC+5:30 Mike Dewhirst wrote:
>> >
>> > I can see a ticket https://code.djangoproject.com/ticket/24686
>> >  which
>> > would likely solve my current need to merge two apps.
>> >
>> > Is the code OK to try out?
>> >
>> > Happy to test it.
>> >
>> > Cheers
>> >
>> > Mike
>> >
>> > --
>> > Signed email is an absolute defence against phishing. This email has
>> > been signed with my private key. If you import my public key you can
>> > automatically decrypt my signature and be sure it came from me. Just
>> > ask and I'll send it to you. Your email software can handle signing.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups "Django users" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to django-users+unsubscr...@googlegroups.com
>> > .
>> > To view this discussion on the web visit
>> >
>> https://groups.google.com/d/msgid/django-users/27fb1633-e8be-43e1-b92e-f92409347731n%40googlegroups.com
>> > <
>> https://groups.google.com/d/msgid/django-users/27fb1633-e8be-43e1-b92e-f92409347731n%40googlegroups.com?utm_medium=email_source=footer
>> >.
>>
>>
>> --
>> Signed email is an absolute defence against phishing. This email has
>> been signed with my private key. If you import my public key you can
>> automatically decrypt my signature and be sure it came from me. Just
>> ask and I'll send it to you. Your email software can handle signing.
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/bf3f0499-21e8-3a05-3c01-6c02d2b7b603%40dewhirst.com.au
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAGp2JVFCBWcpN3v7E3o07CVdKqnT5zmZ9xLkPYRtn46oZrvz3g%40mail.gmail.com
> 
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/60be28ce.1c69fb81.81ffc.00bfSMTPIN_ADDED_MISSING%40gmr-mx.google.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVGA_9okJ55a37gYZNbVz5HrUYmNuv1Ms38z%2B%3DCiVngoow%40mail.gmail.com.


Re: Newbie question

2021-06-07 Thread Lalit Suthar
try form.save(commit=False)


On Mon, 7 Jun 2021 at 22:10, Moose Smith <47kanga...@gmail.com> wrote:

> I have a table which holds simple data like addresses. Created a form
> which displays the records in the form and allows the user to select a
> record "address" to edit.
>
> I want this edit function to be generic so it will work on any table
> without me having to define fields etc... and using  ModelForm I
> accomplished by goal.
>
> Django creates a form and using instance='myrecord' it even populated the
> fields in the form with the record I want to edit. I can edit my fields
> and now it is time to save the changes back to the database.
>
> I found a .save() method for
> # Create a form to edit an existing Article, but use
> # POST data to populate the form.
> >>> a = Article.objects.get(pk=1)
> >>> f = ArticleForm(request.POST, instance=a) >>> f.save()
>
> My question is this:
> The .save method discuss in the Django Documentation above is a method of
> ModelForm but I have rendered my form and when I hit the SUBMIT button the
> edited fields are returned in a WSGI type object which does not have a save
> method.
>
> I can use the POST data and pass the PK and so on, and update the record
> manually with some code. BUT WHAT is the use of a .SAVE method on a
> ModelForm. In order to edit the form I need to RENDER it right?
>
> Is there a way to return the ModelForm object with the edited fields and
> then save back to the database?
>
> Thanks
>
> Moose
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/6ccb9692-5f95-4f8a-86b1-18259b00c0dan%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVH-Da2AeUFzoXWsdPUQrg5%3Dg2ch8pToeA%2BSsdNNYSC4hQ%40mail.gmail.com.


Re: Drop down dependent of more than 2 drop downs

2021-06-07 Thread Lalit Suthar
Hi how did you implemented the first
couple of drop downs and what problem you are facing in the third one
exactly




On Mon, Jun 7, 2021, 1:02 PM Eugene TUYIZERE 
wrote:

> Hello team,
>
> Am having trouble implementing drop down dependent on more than 2 drop
> downs. I successfully did for two but the 3rd one which should depend on
> the second does not work. Is there someone who has successfully implemented
> this and share with me the way I can do it?
>
> Thank you
>
> --
> *TUYIZERE Eugene*
>
>
>
> *Msc Degree in Mathematical Science*
>
> *African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
> Garden-Lime, Cameroon*
>
> Bsc in Computer Science
>
> *UR-Nyagatare Campus*
>
> Email: eugene.tuyiz...@aims-cameroon.org
>eugenetuyiz...@gmail.com
>
> Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABxpZHsgG5FmCEbGwKnp7dr_DF_Yip7z-M6kJRgE-yzT21DmaQ%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVEaNFLy%3DH2A3azsiE3Cayz5QaxHJ%3DhWzzGGVQ0B40Rbrg%40mail.gmail.com.


Re: Sending emails with a name over 75 characters

2021-06-07 Thread Gabriel Araya Garcia
Sebastian,.. una pregunta:
Tienes idea de como a partir de Django poder enviar un whatssap. Te
agradeceria tu ayuda.

Gabriel Araya Garcia
Santiago - Chile




El lun, 7 jun 2021 a las 11:46, Nicolás Gustavo Bruna (<
bruna.nicolasgust...@gmail.com>) escribió:

> Hello, how are you?
>
> I am having trouble sending emails because of the `sanitize_address()`
> Django function.
>
> There is a ticket who talks about this:
> https://code.djangoproject.com/ticket/31784
>
> The ticket is closed, but I am still having the same problem.
>
> The question is: How can I send emails with a name over 75 characters?
> There is a way to do it?
>
> Thank you in advance.
>
> Regards.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a4be65c6-53c2-497a-9293-593caec69103n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKVvSDDWzKd4cZzGG0beHPrm%2BMNpazb_mjFJ60P1soe-PTa2Sw%40mail.gmail.com.


Re: Sending emails with a name over 75 characters

2021-06-07 Thread Sebastian Jung
Hello Nicolás,

i would take another smtp python client to do that.

But i am not 100% sure that you don't have here the same problem...

Regards

Am Mo., 7. Juni 2021 um 17:46 Uhr schrieb Nicolás Gustavo Bruna <
bruna.nicolasgust...@gmail.com>:

> Hello, how are you?
>
> I am having trouble sending emails because of the `sanitize_address()`
> Django function.
>
> There is a ticket who talks about this:
> https://code.djangoproject.com/ticket/31784
>
> The ticket is closed, but I am still having the same problem.
>
> The question is: How can I send emails with a name over 75 characters?
> There is a way to do it?
>
> Thank you in advance.
>
> Regards.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/a4be65c6-53c2-497a-9293-593caec69103n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAKGT9mx_dt0NgJ1oc%2Br2wb4XF5zanr8LrGVB%2BGaBzdsvqEaaag%40mail.gmail.com.


Absurdly long queries with Postgres 11 during unit tests

2021-06-07 Thread Rich Rauenzahn
This is heads up in case anyone sees something similar:

I have managed to trigger this degenerate query case in two completely 
different Django 2.2 projects.   In production with a normal sized dataset, 
the query time is fine.  But during unit testing with a small subset of the 
data, the queries took a long time.  A LONG time.

In the most recent case each query took 100x longer.  200+ seconds instead 
of 2 seconds.  The unit test dataset isn't very large because it's a unit 
test.  

I think I may have first seen this when I upgraded the project to postgres 
11.

Manually vacuuming between tests resolves the issue.  (Yes, autovacuum is 
on by default -- and isn't the db created from scratch for each 'manage 
test' invocation?)

This is how I did it:

def _vacuum():
# Some unit test queries seem to take a much longer time.
# Let's try vacuuming.
# https://stackoverflow.com/a/13955271/2077386
with connection.cursor() as cursor:
logger.info("Vacuum: begin")
cursor.execute("VACUUM ANALYZE")
logger.info("Vacuum: complete")

class VacuumMixin:
@classmethod
def setUpClass(cls):
_vacuum()
return super().setUpClass()

@classmethod
def tearDownClass(cls):
ret = super().tearDownClass()
_vacuum()
return ret

If anyone else sees this, please let me know.  Maybe we can further RCA it.



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e76b105e-ed53-4031-869c-830f94677ef4n%40googlegroups.com.


Re: Using Countries with django

2021-06-07 Thread Williams Andy Inc
thank you very much

On Mon, Jun 7, 2021 at 7:13 PM dupakoor kannan 
wrote:

> Hi,
>
> Here is the list https://djangopackages.org/grids/g/countries/.
>
> Hope this helps
>
> Kannan
>
> On Sun, Jun 6, 2021 at 4:22 PM Williams Andy Inc 
> wrote:
>
>> Can anyone recommend a 3rd party app to me to use with forms form
>> countries and states and cities of the world ..
>>
>> thank you
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/beb5a5d0-83c3-4b37-b5d2-1acaf758cb8en%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CADiZb_e60CmrV2WSBJdGiq8y-3XKoPTJcT4x1o1fciRVzx_b-g%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCthNK0bnBwjOr305Cs8C_93Go1V0%2BKrQdacSUgHMWx86nKgw%40mail.gmail.com.


Re: Help

2021-06-07 Thread Inside Believer
Thank you *mondaj...@gmail.com *  for which time u can give me I'm from 
Pakistan. My office timing is 6 PM to 3 AM

On Monday, 7 June 2021 at 09:22:02 UTC-7 Inside Believer wrote:

> Sir I'm internee i know python my company has assigned me bugs to resolve 
> in live project but i have not didn't experience of Django. Anyone who can 
> help me how to find bugs destination and how to resolve. i can pay for this 
> i want to be expert in 1 month because i'm in probations period.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5ee29e44-cdc5-42e2-ad5c-4e589df965dcn%40googlegroups.com.


Re: Updating FK values for Stock Application

2021-06-07 Thread Sharif Mehedi
 Hi Shazia,


On Monday, June 7, 2021, 5:38:38 PM GMT+6, Shazia Nusrat 
 wrote:  
 
 >>> Hi, 


>>> I need to update my orders model with available quantity and literals. My 
>>> Orders are:
You can use GenericForenignKey field for such use case in your Orders Model. 
see the doc: 
https://docs.djangoproject.com/en/3.2/ref/contrib/contenttypes/#generic-relations
>>> class Orders(models.Model):>>>      update_chemical = models.ForeignKey(…..
>>> I just need your help to give me idea that how I can update my orders with 
>>> multiple fields from Stock. For instance if I create >>> a foreignkey I 
>>> will only be able to select one of the "id" in available stocks. I need to 
>>> let the user select or update multiple >>> values in a FK based key. Please 
>>> advise. 
>>> Best Regards,>>> Shazia
Regards,Sharif


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ed643b75-005f-484d-a004-a14449c7d372n%40googlegroups.com.
  

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1716640108.4539959.1623085365728%40mail.yahoo.com.


Re: Help

2021-06-07 Thread Software, Web Developer
I can help you brother

On Mon, Jun 7, 2021, 19:21 Inside Believer  wrote:

> Sir I'm internee i know python my company has assigned me bugs to resolve
> in live project but i have not didn't experience of Django. Anyone who can
> help me how to find bugs destination and how to resolve. i can pay for this
> i want to be expert in 1 month because i'm in probations period.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADFHYGRNDtm%2BabxAEDVJpg%3D3jHWL3tyBOmFseuAcfXVo9YGC7g%40mail.gmail.com.


Re: Help

2021-06-07 Thread Moose Smith
Hello

I am a newbie to Django and Python. However, after a couple of intense 
weeks watching of some video's on Youtube, Google Searches, and Django 
Documentation I have been  creating a cool website for quality control for 
my company. To answer your question I assume you have a Django application 
that you must debug and update. 

If I were you i would start by selecting a IDE (development environment)  
 I use Visual Studio Code but there are many others. Then I would open the 
project and use the breakpoint functionality of the IDE to begin debugging 
the code. Since you understand Python and I assume you know some OOP you 
should be able to debug your code. 

As I mentioned, I'm new at this , so that is the best advise I can give you 
now. 

Good Luck

Moose
 

On Monday, June 7, 2021 at 12:22:02 PM UTC-4 mk85...@gmail.com wrote:

> Sir I'm internee i know python my company has assigned me bugs to resolve 
> in live project but i have not didn't experience of Django. Anyone who can 
> help me how to find bugs destination and how to resolve. i can pay for this 
> i want to be expert in 1 month because i'm in probations period.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/15d258a2-0f6b-4411-9ff4-224122f737bcn%40googlegroups.com.


Newbie question

2021-06-07 Thread Moose Smith
I have a table which holds simple data like addresses. Created a form which 
displays the records in the form and allows the user to select a record 
"address" to edit. 

I want this edit function to be generic so it will work on any table 
without me having to define fields etc... and using  ModelForm I 
accomplished by goal. 

Django creates a form and using instance='myrecord' it even populated the 
fields in the form with the record I want to edit. I can edit my fields  
and now it is time to save the changes back to the database.

I found a .save() method for 
# Create a form to edit an existing Article, but use
# POST data to populate the form.
>>> a = Article.objects.get(pk=1)
>>> f = ArticleForm(request.POST, instance=a) >>> f.save()

My question is this:
The .save method discuss in the Django Documentation above is a method of 
ModelForm but I have rendered my form and when I hit the SUBMIT button the 
edited fields are returned in a WSGI type object which does not have a save 
method.

I can use the POST data and pass the PK and so on, and update the record 
manually with some code. BUT WHAT is the use of a .SAVE method on a 
ModelForm. In order to edit the form I need to RENDER it right?

Is there a way to return the ModelForm object with the edited fields and 
then save back to the database?

Thanks 

Moose

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6ccb9692-5f95-4f8a-86b1-18259b00c0dan%40googlegroups.com.


Help

2021-06-07 Thread Inside Believer
Sir I'm internee i know python my company has assigned me bugs to resolve 
in live project but i have not didn't experience of Django. Anyone who can 
help me how to find bugs destination and how to resolve. i can pay for this 
i want to be expert in 1 month because i'm in probations period.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d2e6328c-6176-49c6-84dc-c6c4b0d4fedbn%40googlegroups.com.


Re: Using Countries with django

2021-06-07 Thread dupakoor kannan
Hi,

Here is the list https://djangopackages.org/grids/g/countries/.

Hope this helps

Kannan

On Sun, Jun 6, 2021 at 4:22 PM Williams Andy Inc 
wrote:

> Can anyone recommend a 3rd party app to me to use with forms form
> countries and states and cities of the world ..
>
> thank you
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/beb5a5d0-83c3-4b37-b5d2-1acaf758cb8en%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CADiZb_e60CmrV2WSBJdGiq8y-3XKoPTJcT4x1o1fciRVzx_b-g%40mail.gmail.com.


Sending emails with a name over 75 characters

2021-06-07 Thread Nicolás Gustavo Bruna
Hello, how are you?

I am having trouble sending emails because of the `sanitize_address()` 
Django function.

There is a ticket who talks about this: 
https://code.djangoproject.com/ticket/31784

The ticket is closed, but I am still having the same problem.

The question is: How can I send emails with a name over 75 characters? 
There is a way to do it?

Thank you in advance.

Regards.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/a4be65c6-53c2-497a-9293-593caec69103n%40googlegroups.com.


Re: Updating FK values for Stock Application

2021-06-07 Thread Shazia Nusrat
All I was asking to make FK editable. I can do it in views by making forms 
from "forms.Form" in Django and update models I needed to update.

Just thought that there might be a simpler way where I can choose an option 
from ManyToMany select box and then edit those values. 


On Monday, June 7, 2021 at 5:32:12 PM UTC+5 frds...@gmail.com wrote:

> If you want to have multiple chemicals in a single order then you'll have 
> to use ManyToManyField instead of ForeignKey field.
>
> On Mon, Jun 7, 2021 at 5:08 PM Shazia Nusrat  wrote:
>
>> Hi, 
>> I am developing a stock management application and I am stuck at simple 
>> use case.
>>
>> Following is my model for Stock:
>>
>> class LiquidChemicalML(Stock):
>> supplier_name = models.ManyToManyField(Supplier)
>> quantity_values = (
>> ('Ounces', 'Ounces'),
>> ('Millilitters', 'Millilitters'),
>> ('Pounds', 'Pounds'),
>> ('Liter', 'Liter'),
>> ('Galon', 'Galon'),
>> ('Kilogram', 'Kilogram'),
>> ('Grams', 'Grams')
>> )
>> chemical_name = models.CharField(max_length=200)
>> chemical_quantity = models.IntegerField()
>> unit_of_measurement = models.CharField(max_length=20, 
>> choices=quantity_values)
>> purchase_date = models.DateField()
>> expiry_date = models.DateField()class LiquidChemicalML(Stock):
>> supplier_name = models.ManyToManyField(Supplier)
>> quantity_values = (
>> ('Ounces', 'Ounces'),
>> ('Millilitters', 'Millilitters'),
>> ('Pounds', 'Pounds'),
>> ('Liter', 'Liter'),
>> ('Galon', 'Galon'),
>> ('Kilogram', 'Kilogram'),
>> ('Grams', 'Grams')
>> )
>> chemical_name = models.CharField(max_length=200)
>> chemical_quantity = models.IntegerField()
>> unit_of_measurement = models.CharField(max_length=20, 
>> choices=quantity_values)
>> purchase_date = models.DateField()
>>
>> I need to update my orders model with available quantity and literals. My 
>> Orders are:
>>
>> class Orders(models.Model):
>>  update_chemical = models.ForeignKey(…..
>>
>> I just need your help to give me idea that how I can update my orders 
>> with multiple fields from Stock. For instance if I create a foreignkey I 
>> will only be able to select one of the "id" in available stocks. I need to 
>> let the user select or update multiple values in a FK based key. Please 
>> advise. 
>>
>> Best Regards,
>> Shazia
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django-users...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/ed643b75-005f-484d-a004-a14449c7d372n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d58daa3e-ffaa-46f0-94af-bb81c8d2db3cn%40googlegroups.com.


Re: Support for moving a model between two Django apps #24686

2021-06-07 Thread Mike Dewhirst
Ok - fair enough. On the other hand we do use the Admin extensively and because 
we made a mistake during design which we would like to fix, we want to move a 
couple of models from one app to another.Ticket #24686 looks brilliant and 
might be implemented in the dev version of Django.Maybe I'll give it a 
try.CheersMike--(Unsigned mail  from my phone)
 Original message From: Lalit Suthar  
Date: 7/6/21  22:38  (GMT+10:00) To: django-users@googlegroups.com Subject: Re: 
Support for moving a model between two Django apps #24686 It does look long and 
weird but we hardly visit /admin since we do most of the operations from python 
manage.py shellOn Fri, 4 Jun 2021 at 11:42, Mike Dewhirst 
 wrote:On 4/06/2021 2:28 pm, lalit suthar wrote:
> We had a similar problem and we resolved it by moving all the models 
> into a separate internal python package.
> We can have a separate app in our django project also for writing 
> models only and all other apps import models from there.

Interesting.

What does the main menu of the Admin look like?


>
> On Friday, 4 June 2021 at 06:07:53 UTC+5:30 Mike Dewhirst wrote:
>
>     I can see a ticket https://code.djangoproject.com/ticket/24686
>      which
>     would likely solve my current need to merge two apps.
>
>     Is the code OK to try out?
>
>     Happy to test it.
>
>     Cheers
>
>     Mike
>
>     -- 
>     Signed email is an absolute defence against phishing. This email has
>     been signed with my private key. If you import my public key you can
>     automatically decrypt my signature and be sure it came from me. Just
>     ask and I'll send it to you. Your email software can handle signing.
>
>
> -- 
> You received this message because you are subscribed to the Google 
> Groups "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to django-users+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-users/27fb1633-e8be-43e1-b92e-f92409347731n%40googlegroups.com
>  
> .


-- 
Signed email is an absolute defence against phishing. This email has
been signed with my private key. If you import my public key you can
automatically decrypt my signature and be sure it came from me. Just
ask and I'll send it to you. Your email software can handle signing.


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bf3f0499-21e8-3a05-3c01-6c02d2b7b603%40dewhirst.com.au.




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVFCBWcpN3v7E3o07CVdKqnT5zmZ9xLkPYRtn46oZrvz3g%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/60be28ce.1c69fb81.81ffc.00bfSMTPIN_ADDED_MISSING%40gmr-mx.google.com.


Re: Support for moving a model between two Django apps #24686

2021-06-07 Thread Lalit Suthar
It does look long and weird but we hardly visit /admin since we do most of
the operations from python manage.py shell

On Fri, 4 Jun 2021 at 11:42, Mike Dewhirst  wrote:

> On 4/06/2021 2:28 pm, lalit suthar wrote:
> > We had a similar problem and we resolved it by moving all the models
> > into a separate internal python package.
> > We can have a separate app in our django project also for writing
> > models only and all other apps import models from there.
>
> Interesting.
>
> What does the main menu of the Admin look like?
>
>
> >
> > On Friday, 4 June 2021 at 06:07:53 UTC+5:30 Mike Dewhirst wrote:
> >
> > I can see a ticket https://code.djangoproject.com/ticket/24686
> >  which
> > would likely solve my current need to merge two apps.
> >
> > Is the code OK to try out?
> >
> > Happy to test it.
> >
> > Cheers
> >
> > Mike
> >
> > --
> > Signed email is an absolute defence against phishing. This email has
> > been signed with my private key. If you import my public key you can
> > automatically decrypt my signature and be sure it came from me. Just
> > ask and I'll send it to you. Your email software can handle signing.
> >
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Django users" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> > an email to django-users+unsubscr...@googlegroups.com
> > .
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/django-users/27fb1633-e8be-43e1-b92e-f92409347731n%40googlegroups.com
> > <
> https://groups.google.com/d/msgid/django-users/27fb1633-e8be-43e1-b92e-f92409347731n%40googlegroups.com?utm_medium=email_source=footer
> >.
>
>
> --
> Signed email is an absolute defence against phishing. This email has
> been signed with my private key. If you import my public key you can
> automatically decrypt my signature and be sure it came from me. Just
> ask and I'll send it to you. Your email software can handle signing.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/bf3f0499-21e8-3a05-3c01-6c02d2b7b603%40dewhirst.com.au
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAGp2JVFCBWcpN3v7E3o07CVdKqnT5zmZ9xLkPYRtn46oZrvz3g%40mail.gmail.com.


Re: Updating FK values for Stock Application

2021-06-07 Thread FIRDOUS BHAT
If you want to have multiple chemicals in a single order then you'll have
to use ManyToManyField instead of ForeignKey field.

On Mon, Jun 7, 2021 at 5:08 PM Shazia Nusrat  wrote:

> Hi,
> I am developing a stock management application and I am stuck at simple
> use case.
>
> Following is my model for Stock:
>
> class LiquidChemicalML(Stock):
> supplier_name = models.ManyToManyField(Supplier)
> quantity_values = (
> ('Ounces', 'Ounces'),
> ('Millilitters', 'Millilitters'),
> ('Pounds', 'Pounds'),
> ('Liter', 'Liter'),
> ('Galon', 'Galon'),
> ('Kilogram', 'Kilogram'),
> ('Grams', 'Grams')
> )
> chemical_name = models.CharField(max_length=200)
> chemical_quantity = models.IntegerField()
> unit_of_measurement = models.CharField(max_length=20,
> choices=quantity_values)
> purchase_date = models.DateField()
> expiry_date = models.DateField()class LiquidChemicalML(Stock):
> supplier_name = models.ManyToManyField(Supplier)
> quantity_values = (
> ('Ounces', 'Ounces'),
> ('Millilitters', 'Millilitters'),
> ('Pounds', 'Pounds'),
> ('Liter', 'Liter'),
> ('Galon', 'Galon'),
> ('Kilogram', 'Kilogram'),
> ('Grams', 'Grams')
> )
> chemical_name = models.CharField(max_length=200)
> chemical_quantity = models.IntegerField()
> unit_of_measurement = models.CharField(max_length=20,
> choices=quantity_values)
> purchase_date = models.DateField()
>
> I need to update my orders model with available quantity and literals. My
> Orders are:
>
> class Orders(models.Model):
>  update_chemical = models.ForeignKey(…..
>
> I just need your help to give me idea that how I can update my orders with
> multiple fields from Stock. For instance if I create a foreignkey I will
> only be able to select one of the "id" in available stocks. I need to let
> the user select or update multiple values in a FK based key. Please advise.
>
> Best Regards,
> Shazia
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/ed643b75-005f-484d-a004-a14449c7d372n%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAFB6YJqCreDM6bZaDm4gr9FYnihC9G4tKFz8%3DXPa3Nay%2BLn03Q%40mail.gmail.com.


Updating FK values for Stock Application

2021-06-07 Thread Shazia Nusrat
Hi, 
I am developing a stock management application and I am stuck at simple use 
case.

Following is my model for Stock:

class LiquidChemicalML(Stock):
supplier_name = models.ManyToManyField(Supplier)
quantity_values = (
('Ounces', 'Ounces'),
('Millilitters', 'Millilitters'),
('Pounds', 'Pounds'),
('Liter', 'Liter'),
('Galon', 'Galon'),
('Kilogram', 'Kilogram'),
('Grams', 'Grams')
)
chemical_name = models.CharField(max_length=200)
chemical_quantity = models.IntegerField()
unit_of_measurement = models.CharField(max_length=20, 
choices=quantity_values)
purchase_date = models.DateField()
expiry_date = models.DateField()class LiquidChemicalML(Stock):
supplier_name = models.ManyToManyField(Supplier)
quantity_values = (
('Ounces', 'Ounces'),
('Millilitters', 'Millilitters'),
('Pounds', 'Pounds'),
('Liter', 'Liter'),
('Galon', 'Galon'),
('Kilogram', 'Kilogram'),
('Grams', 'Grams')
)
chemical_name = models.CharField(max_length=200)
chemical_quantity = models.IntegerField()
unit_of_measurement = models.CharField(max_length=20, 
choices=quantity_values)
purchase_date = models.DateField()

I need to update my orders model with available quantity and literals. My 
Orders are:

class Orders(models.Model):
 update_chemical = models.ForeignKey(…..

I just need your help to give me idea that how I can update my orders with 
multiple fields from Stock. For instance if I create a foreignkey I will 
only be able to select one of the "id" in available stocks. I need to let 
the user select or update multiple values in a FK based key. Please advise. 

Best Regards,
Shazia

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/ed643b75-005f-484d-a004-a14449c7d372n%40googlegroups.com.


Re: [Solved] SVG widget for the Admin

2021-06-07 Thread Derek
Good to hear!  Django once again proving capable, once you figure it out.

Am reminded of the Zen:

"There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch."


On Mon, 7 Jun 2021 at 10:00, Mike Dewhirst  wrote:

> Thanks Derek - it is now working as follows ...
>
>
>  class Chemical(models.Model):
> ...
> ddstructure = models.TextField(null=True, blank=True, verbose_name="2D
> structure")
> ...
>
>
> class Svg_AdminTextareaWidget(AdminTextareaWidget):
> def render(self, name, value, attrs=None, renderer=None):
> if value:
> return force_text(self.format_value(value))
>
>
> class ChemicalAdmin(admin.ModelAdmin):
> ...
> def formfield_for_dbfield(self, db_field, request, **kwargs):
> if db_field.name == 'ddstructure':
> kwargs['widget'] = Svg_AdminTextareaWidget
> return super().formfield_for_dbfield(db_field, request, **kwargs)
> ...
>
> Cheers
>
> Mike
>
>
> On 7/06/2021 11:50 am, Mike Dewhirst wrote:
>
> On 6/06/2021 6:14 pm, Derek wrote:
>
> RE - "I've looked at the AdminTextareaWidget which is probably based on
> the TextInput built-in widget but see no way to influence what it does. "
> and "How do I get it to display inline in the proper place?"
>
> There seems to be similar question on SO:
>
>
> https://stackoverflow.com/questions/6239966/add-custom-html-between-two-model-fields-in-django-admins-change-form
>
> The answer with AdminFooWidget() and FooAdminForm() seems closest to your
> use case.
>
>
> Thanks for that. Unfortunately the answer at that link is ten years old
> and I think Django Admin must have moved on since then. I'm still trying to
> debug an inexplicable KeyError but I think I understand the approach.
>
> I'll keep trying
>
> Cheers
>
> mike
>
>
>
> On Sun, 6 Jun 2021 at 09:56, Mike Dewhirst  wrote:
>
>> On 4/06/2021 5:15 pm, Derek wrote:
>>
>> Hi Mike
>>
>> The SVG is not going to display as SVG in a *form* - for that you'd need
>> a widget, or perhaps just let users edit the text.
>>
>>
>> OK - I'm outta my depth here. I've looked at the AdminTextareaWidget
>> which is probably based on the TextInput built-in widget but see no way to
>> influence what it does. In theory I'd create a new widget inheriting from
>> that and use mark_safe() somehow.
>>
>> Then I would need to tell the admin form to use it for my ddstructure
>> field.
>>
>> BUT see my template effort below
>>
>>
>> Did you try displaying in the normal admin lists? This was my
>> understanding of where you wanted to see it and the code snippets I posted
>> were for that purpose.
>>
>> If you want to see it as "read only" in the form, but shown as SVG,
>> perhaps you need a custom model template (
>> https://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model
>> )
>>
>>
>> Again, my feet don't touch bottom. I tried adding some code to
>> change_form.html like this ...
>>
>> {% extends "admin/change_form.html" %}
>>
>> {% block content %}{{ block.super }}
>> {% if original.ddstructure %}
>> {{ original.ddstructure | safe }}
>> {% else %}
>> No 2D structure image 
>> {% endif %}
>>
>> {% endblock %}
>>
>> This kinda worked. It comes after block.super so it displays the svg
>> image correctly but at the bottom of the page. AND the raw (or safe) code
>> also displays in the location where I really want the image.
>>
>> So close but ...
>>
>> How do I get it to display inline in the proper place?
>>
>> Many thanks for hanging in there
>>
>> Cheers
>>
>> Mike
>>
>>
>>
>> Derek
>>
>>
>> On Thursday, 3 June 2021 at 08:22:57 UTC+2 Mike Dewhirst wrote:
>>
>>> On 3/06/2021 4:00 pm, Derek wrote:
>>> > >
>>> > > E.g.
>>> > >
>>> > > class MyModel():
>>> > > svg_text = CharField()
>>> >
>>> > in my case it is ...
>>> >
>>> > class Chemical(models.Model):
>>> > ...
>>> > ddstructure = models.TextField(
>>> > null=True,
>>> > blank=True,
>>> > verbose_name="2D structure",
>>> > )
>>> >
>>>
>>> The above is unchanged.
>>>
>>> # admin
>>> class ChemicalAdmin(admin.ModelAdmin):
>>>
>>> def _ddstructure(self, obj):
>>> return mark_safe(obj.ddstructure)
>>> ...
>>> fieldsets = (
>>> (
>>> None,
>>> {
>>> "fields": (
>>> "ddstructure",# displays svg code
>>> "_ddstructure",
>>> ...
>>> }
>>> ),
>>>
>>> FYI it works perfectly as a column in the list display - but I don't
>>> need it there, rather in the page for the chemical.
>>>
>>> This is what happens if it is included in the fieldsets "fields" roster.
>>>
>>>
>>> FieldError at /admin/chemical/chemical/17/change/
>>>
>>> Unknown field(s) (_ddstructure) specified for Chemical. Check
>>> fields/fieldsets/exclude attributes of class ChemicalAdmin.
>>>
>>> Request Method: GET
>>> Request URL: 

[Solved] SVG widget for the Admin

2021-06-07 Thread Mike Dewhirst

Thanks Derek - it is now working as follows ...


 class Chemical(models.Model):
    ...
    ddstructure = models.TextField(null=True, blank=True, 
verbose_name="2D structure")

    ...


class Svg_AdminTextareaWidget(AdminTextareaWidget):
    def render(self, name, value, attrs=None, renderer=None):
    if value:
    return force_text(self.format_value(value))


class ChemicalAdmin(admin.ModelAdmin):
    ...
    def formfield_for_dbfield(self, db_field, request, **kwargs):
    if db_field.name == 'ddstructure':
    kwargs['widget'] = Svg_AdminTextareaWidget
    return super().formfield_for_dbfield(db_field, request, **kwargs)
    ...

Cheers

Mike


On 7/06/2021 11:50 am, Mike Dewhirst wrote:

On 6/06/2021 6:14 pm, Derek wrote:
RE - "I've looked at the AdminTextareaWidget which is probably based 
on the TextInput built-in widget but see no way to influence what it 
does. " and "How do I get it to display inline in the proper place?"


There seems to be similar question on SO:

https://stackoverflow.com/questions/6239966/add-custom-html-between-two-model-fields-in-django-admins-change-form 



The answer with AdminFooWidget() and FooAdminForm() seems closest to 
your use case.


Thanks for that. Unfortunately the answer at that link is ten years 
old and I think Django Admin must have moved on since then. I'm still 
trying to debug an inexplicable KeyError but I think I understand the 
approach.


I'll keep trying

Cheers

mike




On Sun, 6 Jun 2021 at 09:56, Mike Dewhirst > wrote:


On 4/06/2021 5:15 pm, Derek wrote:

Hi Mike

The SVG is not going to display as SVG in a *form* - for that
you'd need a widget, or perhaps just let users edit the text.


OK - I'm outta my depth here. I've looked at the
AdminTextareaWidget which is probably based on the TextInput
built-in widget but see no way to influence what it does. In
theory I'd create a new widget inheriting from that and use
mark_safe() somehow.

Then I would need to tell the admin form to use it for my
ddstructure field.

BUT see my template effort below



Did you try displaying in the normal admin lists? This was my
understanding of where you wanted to see it and the code
snippets I posted were for that purpose.

If you want to see it as "read only" in the form, but shown as
SVG, perhaps you need a custom model template

(https://docs.djangoproject.com/en/dev/ref/contrib/admin/#templates-which-may-be-overridden-per-app-or-model

)


Again, my feet don't touch bottom. I tried adding some code to
change_form.html like this ...

{% extends "admin/change_form.html" %}

{% block content %}{{ block.super }}
{% if original.ddstructure %}
    {{ original.ddstructure | safe }}
{% else %}
    No 2D structure image 
{% endif %}

{% endblock %}

This kinda worked. It comes after block.super so it displays the
svg image correctly but at the bottom of the page. AND the raw
(or safe) code also displays in the location where I really want
the image.

So close but ...

How do I get it to display inline in the proper place?

Many thanks for hanging in there

Cheers

Mike




Derek


On Thursday, 3 June 2021 at 08:22:57 UTC+2 Mike Dewhirst wrote:

On 3/06/2021 4:00 pm, Derek wrote:
> >
> > E.g.
> >
> > class MyModel():
> >     svg_text = CharField()
>
> in my case it is ...
>
> class Chemical(models.Model):
>     ...
>     ddstructure = models.TextField(
>     null=True,
>     blank=True,
>     verbose_name="2D structure",
>     )
>

The above is unchanged.

# admin
class ChemicalAdmin(admin.ModelAdmin):

    def _ddstructure(self, obj):
        return mark_safe(obj.ddstructure)
    ...
    fieldsets = (
    (
    None,
    {
    "fields": (
    "ddstructure",        # displays svg code
    "_ddstructure",
                    ...
            }
    ),

FYI it works perfectly as a column in the list display - but
I don't
need it there, rather in the page for the chemical.

This is what happens if it is included in the fieldsets
"fields" roster.


FieldError at /admin/chemical/chemical/17/change/

Unknown field(s) (_ddstructure) specified for Chemical.
Check fields/fieldsets/exclude attributes of class
ChemicalAdmin.


Drop down dependent of more than 2 drop downs

2021-06-07 Thread Eugene TUYIZERE
Hello team,

Am having trouble implementing drop down dependent on more than 2 drop
downs. I successfully did for two but the 3rd one which should depend on
the second does not work. Is there someone who has successfully implemented
this and share with me the way I can do it?

Thank you

-- 
*TUYIZERE Eugene*



*Msc Degree in Mathematical Science*

*African Institute for Mathematical Sciences (AIMS Cameroon)Crystal
Garden-Lime, Cameroon*

Bsc in Computer Science

*UR-Nyagatare Campus*

Email: eugene.tuyiz...@aims-cameroon.org
   eugenetuyiz...@gmail.com

Tel: (+250) 7 88 26 33 38, (+250) 7 22 26 33 38

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABxpZHsgG5FmCEbGwKnp7dr_DF_Yip7z-M6kJRgE-yzT21DmaQ%40mail.gmail.com.