AH, sorry. Just saw it:

# Functions from the following migrations need manual copying. # Move them and any dependencies into this file, then update the # RunPython operations to refer to the local versions: # medux.core.migrations.0001_initial

Am 22.12.22 um 22:12 schrieb Christian González:

Hi devs,

before I file a bug, small check here:

I squashed my migrations using "./manage.py squashmigrations core 0003"

It squashed all existing 3 migrations, including a runPython migration in 0001.

The resulting migration contains this code:

    migrations.RunPython(
    code=medux.core.migrations.0001_initial.create_admin_user,
    ),

Which is not working, as Python complains:

    File
    
"/home/christian/Projekte/medux/src/medux/core/migrations/0001_squashed_0003_alter_address_id_alter_addressmapper_id_and_more.py",
    line 57
    code=medux.core.migrations.0001_initial.create_admin_user,
                                       ^
    SyntaxError: invalid decimal literal

So I suppose that is not intended. Is this a django bug? Should I file this as issue?

Cheers,

Christian


--
Dr. Christian González
https://nerdocs.at
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/286d7666-41eb-12ef-44b5-640993f480c3%40nerdocs.at <https://groups.google.com/d/msgid/django-developers/286d7666-41eb-12ef-44b5-640993f480c3%40nerdocs.at?utm_medium=email&utm_source=footer>.

--
Dr. Christian González
https://nerdocs.at

--
You received this message because you are subscribed to the Google Groups "Django 
developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/c38d379d-5253-d70b-9cff-6e4f31616a45%40nerdocs.at.
  • dja... Christian González
    • ... Christian González
      • ... Naresh Pahariya
        • ... Christian González
          • ... 'Adam Johnson' via Django developers (Contributions to Django itself)

Reply via email to