Django +Ajax + jQuery problem

2020-07-02 Thread Jan Gregorczyk
My problem is that site registers only the first click on .upvote or .downvote element and ignores next ones. {% extends 'base.html' %} {% load votes_exists %} {% block title %}{{question.title|truncatechars:52}}{% endblock %} {% block content %} {{question.title}} {{question.content}} {% for answe

Need Covid 19 Database for Experiments

2020-07-02 Thread Balaji Shetty
Hi Can anyone provide me Covid 19 Database. I need Covid 19 Database for Experiments Thank you -- Mr Shetty Balaji Asst. Prof. IT Department SGGS I&T Nanded. My. India -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: Need Covid 19 Database for Experiments

2020-07-02 Thread mohamed khaled
go to Kaggle website you will see or IEEE On Thu, 2 Jul 2020 at 19:38, Balaji Shetty wrote: > Hi > > Can anyone provide me Covid 19 Database. > I need Covid 19 Database for Experiments > > Thank you > > > -- > Mr Shetty Balaji > Asst. Prof. > IT Department > SGGS I&T > Nanded. My. India > > -- >

Re: Need Covid 19 Database for Experiments

2020-07-02 Thread carlos
https://www.kaggle.com/allen-institute-for-ai/CORD-19-research-challenge On Thu, Jul 2, 2020 at 11:43 AM mohamed khaled < mohamed.khaled33...@gmail.com> wrote: > go to Kaggle website you will see or IEEE > > On Thu, 2 Jul 2020 at 19:38, Balaji Shetty wrote: > >> Hi >> >> Can anyone provide me Co

How to achieve this?

2020-07-02 Thread Puneet Makhija
My clients wants sub admins panel , just like a staff users class OfferListAPIView(generics.ListCreateAPIView): queryset = Offers.objects.all().order_by('-id') serializer = OfferListSerializer @decorator def list(self, request): queryset = self.get_queryset() serializer = OfferListSeri

How can we achieve this?

2020-07-02 Thread Puneet Makhija
def decorator(func): @wraps(func) def inner(request, *args, **kwargs): pdb.set_trace() a1 = args user = a1[1]._request.user permission = Permission.objects.get(user=user) # < Permission: bookings | Booking | Can view Booking > return func(*a

User.objects.all() only returns username

2020-07-02 Thread Mohsen Pahlevanzadeh
When I use select * from auth_user; I get the following result: ++++--+--++---+--

Re: User.objects.all() only returns username

2020-07-02 Thread RANGA BHARATH JINKA
send me your models.py On Fri, Jul 3, 2020 at 12:06 PM Mohsen Pahlevanzadeh < m.pahlevanza...@gmail.com> wrote: > When I use select * from auth_user; I get the following result: > > > ++-