Thank you for helping. Le dim. 18 déc. 2022 à 00:58, sere kaba <[email protected]> a écrit :
> from .model import Patient > admin.site.register(Patient) > or > @admin.register(Patient) > > Le mardi 13 décembre 2022 à 13:02:28 UTC, [email protected] a écrit : > >> Are you want to register your model on admin? >> >> On Tuesday, December 13, 2022 at 1:01:17 PM UTC+6 [email protected] >> 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 Monday, December 12, 2022 at 4:49:26 AM UTC+5:30 [email protected] >>> wrote: >>> >>>> Hello to all. Please, I would like to know in Django, how to allow an >>>> administrator to add a patient, but not a simple connected user? the >>>> following pics are my models.py, view.py and my template.py. >>>> >>> -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/770a82eb-9354-4c9f-9d35-4805f2e32e8an%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/770a82eb-9354-4c9f-9d35-4805f2e32e8an%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CALxYoRJ01J0eo-XbnvS4roa-XCmUmM3NWEkQch1rQhgQ5LKEAA%40mail.gmail.com.

