Could you give me an example?? On Mon, Jun 15, 2020 at 1:21 PM Kayode Oladipo <oladipokayo...@gmail.com> wrote:
> There's an id field built into every Django model (aka, the primary key > (pk)) > > Just do, ModelInstance.id and that should do the trick. > > Cheers. > > On Mon, Jun 15, 2020, 8:03 AM Soumen Khatua <soumenkhatua...@gmail.com> > wrote: > >> Hi Folks, >> >> I have one Blog post project here user can see the blog and by clicking >> on the blog title they can see the details of the blog, so here Slug will >> be working here as a URL,but in the details view, How I can fetch that >> particular content details without having the ID because slug/title is the >> parameter of the view and it can be duplicated. >> Any help will be appreciated >> >> Thank You >> >> Regards, >> Soumen >> >> -- >> 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/CAPUw6WYCuO9AMa7j4WxaCCZqdgE26YoUTksQptBSYtQ64K8O4g%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAPUw6WYCuO9AMa7j4WxaCCZqdgE26YoUTksQptBSYtQ64K8O4g%40mail.gmail.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 django-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/CA%2BARzD-870cXr41yUpGQheNUUDHZxW1GVoR5QJR%3DiV259A4K3w%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CA%2BARzD-870cXr41yUpGQheNUUDHZxW1GVoR5QJR%3DiV259A4K3w%40mail.gmail.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 django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAPUw6WaFgP99TAJ%3D0-SSHcwdbfCJYn3x0EKk_b-cvyRRiBhDFQ%40mail.gmail.com.