Code Monkey home page Code Monkey logo

Comments (7)

lukeburden avatar lukeburden commented on May 26, 2024 1

Why is it even possible to change the id field? Is there a use-case for that?

from fcm-django.

lukeburden avatar lukeburden commented on May 26, 2024 1

So far as I can tell, it should not be possible to change the primary key of the record, at all. If the primary key was the registration_id, it would make sense to allow modification of it, but it is not.

You could submit a PR that makes the autoincrement id read_only, and hopefully, this projects maintainer would accept it. Or explain why changing the id is needed, if not.

from fcm-django.

xtrinch avatar xtrinch commented on May 26, 2024 1

This project is in desperate need of maintainers as I am very short on time. But I will do my best to review.

from fcm-django.

xtrinch avatar xtrinch commented on May 26, 2024

Be more specific. Request where and what is the error returned with DEBUG = True

from fcm-django.

d1p avatar d1p commented on May 26, 2024

Error:

duplicate key value violates unique constraint "fcm_django_fcmdevice_pkey" DETAIL: Key (id)=(1) already exists.

upon having a duplicate key it should result in a 400 error with a meaningful message so that frontend developers can work with it, Right now it's just creating an error 500.

from fcm-django.

d1p avatar d1p commented on May 26, 2024

Alright, I will submit a PR and hopefully, it will get approved.

from fcm-django.

xtrinch avatar xtrinch commented on May 26, 2024

Fix merged in #72

from fcm-django.

Related Issues (20)

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.