Code Monkey home page Code Monkey logo

Comments (5)

satoon101 avatar satoon101 commented on June 11, 2024 1

Actually, looking at this stack overflow answer, you should be able to add an apps.py and make a default there.

from django-webpush.

satoon101 avatar satoon101 commented on June 11, 2024 1

I believe that #122 should fix this issue for everyone going forward.

from django-webpush.

safwanrahman avatar safwanrahman commented on June 11, 2024

Closed by #111

from django-webpush.

tyilo avatar tyilo commented on June 11, 2024

After this fix and running ./manage.py makemigrations Django generates the following migration in my project:

# Generated by Django 3.2.16 on 2022-11-22 20:21

from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ('webpush', '0004_auto_20220831_1500'),
    ]

    operations = [
        migrations.AlterField(
            model_name='group',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='pushinformation',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
        migrations.AlterField(
            model_name='subscriptioninfo',
            name='id',
            field=models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
        ),
    ]

I think it was a mistake to change the fields to BigAutoField as done in the pull request.

from django-webpush.

satoon101 avatar satoon101 commented on June 11, 2024

I noticed the same thing as @tyilo. Instead of using BigAutoField, it should respect the app's DEFAULT_AUTO_FIELD setting. The whole reason that @Trafitto had to create a migration in the first place is likely because they were using BigAutoField as the DEFAULT_AUTO_FIELD.

from django-webpush.

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.