Re: Updating reCaptcha (widget) in django-based OSQA

2018-04-20 Thread Jani Tiainen
I recently used similar stuff and IIRC recaptcha2 doesn't use one of those fields anymore. pe 20. huhtikuuta 2018 klo 17.40 DougN kirjoitti: > I'm new to django and trying to figure out how some of the form processing > works. > > For example, I have this field: > > class ReCaptchaField(forms.Fi

Updating reCaptcha (widget) in django-based OSQA

2018-04-20 Thread DougN
I'm new to django and trying to figure out how some of the form processing works. For example, I have this field: class ReCaptchaField(forms.Field): def __init__(self, *args, **kwargs): super(ReCaptchaField, self).__init__(widget=ReCaptchaWidget) The widget renders some HTML (reCapt

Django @transaction.atomic() to prevent creating objects in concurrency

2018-04-20 Thread Aamu Padi
I have a ticket model, and its ticket serialiazer. The ticket model has a *bought* and a *booked_at* field. And also a *unique_together* attribute for *show* and *seat*. class Ticket(models.Model): show = models.ForeignKey(Show, on_delete=models.CASCADE) seat = models.ForeignKey(Seat, on_d

RE: Use self-increasing arguments in numeric for-loop in Django

2018-04-20 Thread Matthew Pava
You have a list of values. Use the Pythonic way to iterating over a list, which does not involve using indices. {% for o in graphobject %} {{ o }} {{ o.subfield }} {% endfor %} From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf

Re: Use self-increasing arguments in numeric for-loop in Django

2018-04-20 Thread Bill Torcaso
I an new-ish to Django, and I ask this to hear from more experienced users whether this would work at all, and whether it would be considered a good or bad practice. Goal: given an object and an integer index, retrieve the sub-object at that index within the incoming object. Method: Write a

issue with django model and form

2018-04-20 Thread Pranay reddy
I have "user" Model username email phonenumber I want to access all "user" model emails in other model "B" and make user to select more than one email and store it has commaseperatedvalues "B" colums are organization Designation share_knowledge_with abc manager (here all em

ImageSlider in Django

2018-04-20 Thread deviya sweety
Hi friends, I want sliding images in my site, how can I do it in django? I've tried to use Django-hero-slider in my project but when I try to add slideritem objects in the admin page I'm getting error. can anyway help me in this issue please!! Thankyou in advance :) -- You received this

Re: Authentication Django RestFramework

2018-04-20 Thread Amirul Abu
Dear Musharaf, If you want authentication built-in you should use Django and not Django REST Framework. On Fri, Apr 20, 2018 at 2:58 PM, Andréas Kühne wrote: > Hi Musharef, > > Yes, everything you are asking for is possible. However as far as I know > there is no standard solution for your pr