from .model import Patient
admin.site.register(Patient)
or 
@admin.register(Patient)

Le mardi 13 décembre 2022 à 13:02:28 UTC, abdur.r...@gmail.com a écrit :

> Are you want to register your model on admin?
>
> On Tuesday, December 13, 2022 at 1:01:17 PM UTC+6 manjushak...@gmail.com 
> 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 curtis...@gmail.com 
>> 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 django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/770a82eb-9354-4c9f-9d35-4805f2e32e8an%40googlegroups.com.

Reply via email to