[mezzanine-users] Override KeywordsWidget?

2016-09-05 Thread zruu
If I would like to override the KeywordsWidget (the TextInput) how could I do that? I want to add a custom validator to it. Thanks class KeywordsWidget(forms.MultiWidget): """ Form field for the ``KeywordsField`` generic relation field. Since the admin with model forms has no form fie

[mezzanine-users] Blog posts don't get published when using later time on deploy

2016-08-30 Thread zruu
I've successfully deployed my first application with nginx, gunicorn, memcached, supervisor, postgresql. However, when users try to set the publish date to publish it later. It never get published on the blog. I can't get the query with them either on different places with the base manager. I t

[mezzanine-users] Question regarding wordpress import tool

2016-07-30 Thread zruu
When using the wordpress_import tool. I want to set a specific site ID. How could I do that? What I can see in the base.py it sets itself to get_current(): https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/blog/management/base.py#L156 I tried setting that to Site.objects.get(name='t

Re: [mezzanine-users] Need some help with assigning user site permission in a view

2016-07-21 Thread zruu
> siteperms.sites.add(site) > > On Thu, Jul 21, 2016 at 5:15 PM, zruu > > wrote: > >> Hi Ryne, >> >> Thanks for the quick reply. That was what I was looking for. I have a >> form on the front end that a user can create a site, and a user ac

Re: [mezzanine-users] Need some help with assigning user site permission in a view

2016-07-21 Thread zruu
ur goal is it's all I can offer. > > On Thu, Jul 21, 2016 at 4:56 PM, zruu > > wrote: > >> Hey guys, >> >> I really need your help. I'm stuck at the moment. Maybe is too late. >> However. I need to in my class view add site permission instead of

[mezzanine-users] Need some help with assigning user site permission in a view

2016-07-21 Thread zruu
Hey guys, I really need your help. I'm stuck at the moment. Maybe is too late. However. I need to in my class view add site permission instead of using through the admin. I have no clue how to do this. I looked through the Mezzanine code and all I found was this piece of code that looks someth

[mezzanine-users] Shouldn't comments that are deleted be hidden from other users without permission to that site?

2016-07-18 Thread zruu
I don't know how it's built, but I noticed something today. When having *SESSION_COOKIE_DOMAIN* on for a wildcard solution with all the sites I can see others comments that are deleted. I don't think it should be like that. I would rather hide them from users that do not have permission to that

[mezzanine-users] Re: 404 on /accounts/update/

2016-07-18 Thread zruu
sub_user = User.objects.get(username=username) return { 'user': user, } Den måndag 18 juli 2016 kl. 12:55:50 UTC+2 skrev zruu: > > For some reason I do not know why, when I write this context processor I > can't go to /accounts/update/ anymore

[mezzanine-users] 404 on /accounts/update/

2016-07-18 Thread zruu
For some reason I do not know why, when I write this context processor I can't go to /accounts/update/ anymore. It displays a 404. def user_subdomain(request): from django.shortcuts import get_object_or_404 username = request.META['HTTP_HOST'].split('.')[0] user = get_object_or_404(