Hi, User can't upgrade his group. It is your code that does it. And it is your code responsibility to track changes etc.
User just may have a button on ui that invokes your code (view) but rest is really up to you. 21.6.2017 11.24 "Mannu Gupta" <abhimanyu98...@gmail.com> kirjoitti: > I meant that using your method i.e by making different groups . > When he upgrade the group . > How about making another table having user, his subscription level and > changed_at field(which traces when he /upgrade the group ) > > Just want to know your suggestion . > > Mannu > > On Jun 21, 2017 1:48 PM, "Jani Tiainen" <rede...@gmail.com> wrote: > >> Well its your code, so yes if you write code that does it. >> >> It doesn't happen magically for you. >> >> 21.6.2017 11.15 "Mannu Gupta" <abhimanyu98...@gmail.com> kirjoitti: >> >>> Hi , >>> Will I be able to trace if user upgrde the subscription level ? >>> >>> Manni >>> >>> On Wed, Jun 21, 2017 at 1:41 PM, Jani Tiainen <rede...@gmail.com> wrote: >>> >>>> Hi, >>>> >>>> We have been using user groups for that. And then we check and filter >>>> out based on given group(s). >>>> >>>> 21.6.2017 10.45 "Mannu Gupta" <abhimanyu98...@gmail.com> kirjoitti: >>>> >>>>> I want to make a role based user in Django like the following :- >>>>> >>>>> User with Subscription level 0 will have some feature and some basic >>>>> fields like first name , last name etc. >>>>> User with Subscription level 1 will have some more feature and some >>>>> extra fields like tax-id , national id , nationality, is_disable etc . >>>>> User with Subscription level 2 will have more features with all the >>>>> fields with the fields with same as fields of Subscription level 1 since >>>>> he >>>>> has already subscribed only he is upgrading. >>>>> User with Subscription level 3 will have more feature with all the >>>>> fields with the fields same above . >>>>> >>>>> How do i make the user model and related this relate to its role , and >>>>> how do i be able to set permission for different user ? >>>>> >>>>> -- >>>>> 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/4bdc5c54-5c90 >>>>> -4515-b977-30fcb612b3ff%40googlegroups.com >>>>> <https://groups.google.com/d/msgid/django-users/4bdc5c54-5c90-4515-b977-30fcb612b3ff%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 a topic in the >>>> Google Groups "Django users" group. >>>> To unsubscribe from this topic, visit https://groups.google.com/d/to >>>> pic/django-users/2JjuGF1-4PU/unsubscribe. >>>> To unsubscribe from this group and all its topics, 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/ms >>>> gid/django-users/CAHn91od9D9aeoigGQ4aN3NKX_woJn%2BENPrePMg%2 >>>> BKEKhZBb-W9Q%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/django-users/CAHn91od9D9aeoigGQ4aN3NKX_woJn%2BENPrePMg%2BKEKhZBb-W9Q%40mail.gmail.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/ms >>> gid/django-users/CAEDhgmi-cONKSHSBBJOJu6JKPy42-n4zfDY%2BeUmO >>> QyMXm1bj-A%40mail.gmail.com >>> <https://groups.google.com/d/msgid/django-users/CAEDhgmi-cONKSHSBBJOJu6JKPy42-n4zfDY%2BeUmOQyMXm1bj-A%40mail.gmail.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 a topic in the >> Google Groups "Django users" group. >> To unsubscribe from this topic, visit https://groups.google.com/d/to >> pic/django-users/2JjuGF1-4PU/unsubscribe. >> To unsubscribe from this group and all its topics, 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/ms >> gid/django-users/CAHn91oeKBtiVdkJj6JFd4_qbX98%2B0vvbonKc% >> 2BJVdtcb0akJ81w%40mail.gmail.com >> <https://groups.google.com/d/msgid/django-users/CAHn91oeKBtiVdkJj6JFd4_qbX98%2B0vvbonKc%2BJVdtcb0akJ81w%40mail.gmail.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/CAEDhgmjkZBKhbVA7_tTsM0qktOtOQpSDYZfAgRRKragvpsF > n%2Bg%40mail.gmail.com > <https://groups.google.com/d/msgid/django-users/CAEDhgmjkZBKhbVA7_tTsM0qktOtOQpSDYZfAgRRKragvpsFn%2Bg%40mail.gmail.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/CAHn91ofpoLdCpKw2ZPSgOcnhzXFteyUfpZWuaR50nmq-eS6fVw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.