Re: Arrayfield constraint issue in 4.1

2022-12-12 Thread Manjusha
I think default should be assigned like this default=[ ] or default= list() But I'm junior so may I don't know well On Mon, 12 Dec 2022, 03:13 James Gillard, wrote: > The callable list is indeed assigned as the default for the ArrayField, as > documented here: > https://docs.djangoproject.co

Re: Arrayfield constraint issue in 4.1

2022-12-12 Thread James Gillard
I agree it looks odd, but the docs I linked say that list is fine, and here's example from a test inside Django itself: https://github.com/django/django/blob/cb791a2540c289390b68a3ea9c6a79476890bab2/tests/postgres_tests/models.py#L51 [image: James from Journee]

Re: Permission for admin to add patient

2022-12-12 Thread Manjusha
Hi, need to register the model.py file in admin.py file and then make migrations as like mention in following documentation. https://docs.djangoproject.com/en/4.1/intro/tutorial02/ On Monday, December 12, 2022 at 4:49:26 AM UTC+5:30 curtis...@gmail.com wrote: > Hello to all. Please, I would lik

Re: Permission for admin to add patient

2022-12-12 Thread Manjusha
I'm junior may it will work!! On Tuesday, December 13, 2022 at 12:31:17 PM UTC+5:30 Manjusha wrote: > Hi, need to register the model.py file in admin.py file and then make > migrations as like mention in following documentation. > https://docs.djangoproject.com/en/4.1/intro/tutorial02/ > > On Mo

Re: Permission for admin to add patient

2022-12-12 Thread rahul sharma
connect with me in zoom On Tue, Dec 13, 2022 at 12:34 PM Manjusha wrote: > I'm junior may it will work!! > > On Tuesday, December 13, 2022 at 12:31:17 PM UTC+5:30 Manjusha wrote: > >> Hi, need to register the model.py file in admin.py file and then make >> migrations as like mention in following

Re: Permission for admin to add patient

2022-12-12 Thread André Hangalo
from .models import ModelName admin.site.register(ModelName) On Tue, 13/12/2022 at 08:04 Manjusha wrote: > I'm junior may it will work!! > > On Tuesday, December 13, 2022 at 12:31:17 PM UTC+5:30 Manjusha wrote: > >> Hi, need to register the model.py file in admin.py file and then make >> migrat