On Aug 27, 2016 1:49 PM, "M Hashmi" <[email protected]> wrote:
>
> Hi,
> I am trying to setup "saleor" e-commerce on windows and getting this
error.
>
> (saleorpro) C:\Users\Mudassar\saleorpro\saleor>manage.py makemigrations
> SystemCheckError: System check identified some issues:
>
> CRITICALS:
> userprofile.User: (auth.C009) <class
'saleor.userprofile.models.User'>.is_anonym
> ous must be an attribute or property rather than a method. Ignoring this
is a se
> curity issue as anonymous users will be treated as authenticated!
> userprofile.User: (auth.C010) <class
'saleor.userprofile.models.User'>.is_authen
> ticated must be an attribute or property rather than a method. Ignoring
this is
> a security issue as anonymous users will be treated as authenticated!
>

What does the saleor.userprofile.models.User look like? I'd looks like you
are overriding is_anonymous and is_authenticated as methods, rather than
keeping them as attributes or even properties.

Perhaps you forgot to decorate those methods as properties?

The Redis reference is simply a suggestion as a method for handling global
caching.

Is this a 3rd party package? If so perhaps the author's documentation has
something about this?

-James

-- 
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 post to this group, send email to [email protected].
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/CA%2Be%2BciUa%3DcEWQRzt8HOeYBk81QYM7wEN_CD_JfWqGXcTuD1F8Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to