django restrict choice options in dropdown according to the user type

2021-12-10 Thread Trippy Samurai
Hi, I have two user types usertype a and usertype b i have a form to update the task with fields name,info and status i have STATUS_CHOICES = ( ('A','A'), ('B','B'), ('C','C') ) the user type a should c only ('A','A'),('B','B'), in dropdown and usertype b should have (C,C) as dropdown how do

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2021-12-10 Thread ram s
when u getting this issue while deploying on pythonanywhere.com or in your localserver On Mon, Dec 6, 2021 at 8:06 PM CHANDNI SINGH wrote: > hey, > i am facing the same problem > can you please guide me on how to solve that issue ??? > > On Thursday, 16 May, 2019 at 6:38:01 pm UTC+5:30

Re: could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432?

2021-12-10 Thread Ajeet Kumar
is your postgres server is up and running? Try to connect with pgadmin On Mon, 6 Dec, 2021, 8:05 PM CHANDNI SINGH, wrote: > hey, > i am facing the same problem > can you please guide me on how to solve that issue ??? > > On Thursday, 16 May, 2019 at 6:38:01 pm UTC+5:30 randmw...@gmail.com >

Re: Why does sqlmigrate need a connection to an existing database?

2021-12-10 Thread Shmuel Treiger
Build graph has a specific separate path for `if self.connection is None:`, so that shouldn't be an issue? As far as atomicity, what if, in a case where no connection is found, it could just prompt: "No database connection found. Do you want your migration to be atomic? (y/N)" On Thursday, 9

Re: How to import UGETTEXT_LAZY ON DJANGO 4.0

2021-12-10 Thread Jason
https://docs.djangoproject.com/en/4.0/releases/3.0/#id3 On Friday, December 10, 2021 at 12:01:03 AM UTC-5 ngal...@gmail.com wrote: > Thanks hopefully the same to ugettext > > > > Kind Regards > > > > Ngallen Ramadhan > > T: +255 765 889 960 <+255%20765%20889%20960> | Emial: ngal...@gmail.com

Re: AttributeError: 'Values' object has no attribute 'link_base' in building sphinx documentation.

2021-12-10 Thread Sencer Hamarat
I think the same way. I will upgrade to 2.2.25 soon. Then I'll open a ticket asap. On Thu, Dec 9, 2021 at 7:04 PM Jason wrote: > you could raise a bug report on the django tracker at > https://code.djangoproject.com/query but I'm doubtful that this will gain > any traction > > Those versions of