Skip to content

Instantly share code, notes, and snippets.

View saqib-mehmood-tkxel's full-sized avatar

saqib-mehmood-tkxel

View GitHub Profile
@saqib-mehmood-tkxel
saqib-mehmood-tkxel / django_example.py
Last active March 26, 2023 17:42
Code sample of Python/Django
class ApplyCredit(APIView):
permission_classes = [IsAuthenticated]
def post(self, request):
"""
Apply credit on bill.com
"""
try:
audit_log = AuditLog(user=request.user)
billee_id = request.POST.get('billee_id')
import React, { useEffect, useState } from "react";
import { TextFieldFormik } from "../../input/TextFieldFormik";
import { Formik } from "formik";
import * as yup from "yup";
import { SelectFormik } from "../../input/SelectFormik";
import { IFormValue } from "../Sidebar";
import { connect } from "react-redux";
import {
addParticipant,
editParticipant,