make category like that and relate the category model as foreignkey for
model which one u neaded

On Mon, 3 Jun 2019 at 23:13, sachinbg sachin <sachinbgsach...@gmail.com>
wrote:

> make ur category model like this
>
> On Mon, 3 Jun 2019 at 23:10, sachinbg sachin <sachinbgsach...@gmail.com>
> wrote:
>
>>
>>
>> On Mon, Jun 3, 2019, 4:32 PM Aayush Bhattarai <
>> bhattaraiaayus...@gmail.com wrote:
>>
>>> Hi, I am using Django==2.2.1 *as Class-Based View. I wanted to add a
>>> category in a drop down and when anyone clicks it should be gone to
>>> category.*
>>> *What will be the best method for doing this? Follow the step of DRY.
>>> Thanks for your Time.*
>>>
>>> [image: Capture.PNG]
>>>
>>> --
>>> 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 post to this group, send email to django-users@googlegroups.com.
>>> Visit this group at https://groups.google.com/group/django-users.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/django-users/7a0a0299-895f-4951-bd2e-98c00e69beda%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/7a0a0299-895f-4951-bd2e-98c00e69beda%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAOs61rws1O_LYUoNRkDiptCtpe2UZ2vt-c6uzk7ac7HOa8je9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to