Giter VIP home page Giter VIP logo

101loop / drf-instamojo Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 4.0 52 KB

Instamojo app for Django based on Django REST Framework

Home Page: https://drf-instamojo.readthedocs.io/

License: GNU General Public License v3.0

Python 100.00%
django django-rest-framework django-application payment-gateway payment-integration payment-processing instamojo instamojo-payment-gateway instamojo-sdk instamojo-api

drf-instamojo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

drf-instamojo's Issues

Getting a TypeError when calling Payment.objects.create()

TypeError at /order/paymentview1/
Got a TypeError when calling Payment.objects.create(). This may be because you have a writable field on the serializer class that is not a valid argument to Payment.objects.create(). You may need to make the field read-only, or override the PaymentSerializer.create() method to handle this correctly.
Original exception was:

Traceback (most recent call last):
 File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\rest_framework\serializers.py", line 948, in create
   instance = ModelClass._default_manager.create(**validated_data)
 File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\manager.py", line 82, in manager_method
   return getattr(self.get_queryset(), name)(*args, **kwargs)
 File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\query.py", line 422, in create
   obj.save(force_insert=True, using=self.db)
 File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\base.py", line 741, in save
   force_update=force_update, update_fields=update_fields)
 File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\db\models\base.py", line 790, in save_base
   update_fields=update_fields, raw=raw, using=using,
 File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\dispatch\dispatcher.py", line 175, in send
   for receiver in self._live_receivers(sender)
 File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\django\dispatch\dispatcher.py", line 175, in <listcomp>
   for receiver in self._live_receivers(sender)
 **File "C:\Users\NIRPESH\AppData\Local\Programs\Python\Python36\lib\site-packages\drf_instamojo\signals\handlers.py", line 35, in payment_record_handler
   if payment_request_imojo.get('modified_at') > pr.modified_at:
TypeError: '>' not supported between instances of 'str' and 'datetime.datetime'**

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.