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

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 =

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

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 > Nanded. My. India > > -- >

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 Nanded. My. India -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

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

Re: Can someone help me??

2020-07-02 Thread Hella Nick
Thank you Oba Stephen and Mohammed Alnajdi. I think this is a real BUG. I'm ready to rebuild the project. Thank you again. oba stephen 于2020年7月2日周四 下午2:48写道: > I don't see anything wrong with the Models.py file, I think you should try > removing those slash "/" just as Mohammed said. > > On

Re: Can someone help me??

2020-07-02 Thread oba stephen
I don't see anything wrong with the Models.py file, I think you should try removing those slash "/" just as Mohammed said. On Thu, Jul 2, 2020 at 7:40 AM Mohammed Alnajdi wrote: > The error seems to be somewhere in the Urls > > I think it might be issue with > "{% url 'blog:index/' %}" > > try

Re: Can someone help me??

2020-07-02 Thread Mohammed Alnajdi
The error seems to be somewhere in the Urls I think it might be issue with "{% url 'blog:index/' %}" try to remove the slash "{% url 'blog:index' %}" you might need to do the same with other urls On Thu, Jul 2, 2020 at 9:31 AM Hella Nick wrote: > class Article(models.Model): >> # time =

Re: Can someone help me??

2020-07-02 Thread Hella Nick
> > class Article(models.Model): > # time = datetime.datetime.now() > IMG_LINK = '/static/images/summary.jpg' > id = models.AutoField(primary_key=True,verbose_name='自增主键') > title = models.CharField(verbose_name='文章标题',max_length=100) > intro =

Re: Can someone help me??

2020-07-02 Thread oba stephen
Can you share your models.py? Like Sencer said you have to check data types where the "+" operator is used. On Thu, Jul 2, 2020 at 3:55 AM Hella Nick wrote: > Dear Mir oba stephen: > > I deleted "volume" function,But The result is the same. > > Hella Nick 于2020年7月2日周四 上午10:51写道: > >>