Skip to content

[FAQ Bot] NEW: makemigrations fails with “impossible to add the field ... auto_now_ad - #381

Merged
alexeygrigorev merged 3 commits into
mainfrom
faq-bot/issue-380
Sep 9, 2026
Merged

[FAQ Bot] NEW: makemigrations fails with “impossible to add the field ... auto_now_ad#381
alexeygrigorev merged 3 commits into
mainfrom
faq-bot/issue-380

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

✨ FAQ NEW

Course: ai-dev-tools-zoomcamp
Section: module-4 (Module 4 is the Django/AI coding agent module, so this fits best there rather than general or any other module.)
Related Issue: #380

Question

makemigrations fails with “impossible to add the field ... auto_now_add=True” — how do I fix it?

Decision Rationale

The proposed issue is specific to Django model migrations in Module 4 (the course’s Django/agent homework). No existing FAQ in the results covers makemigrations failing due to auto_now_add on a field added to a model with existing rows.

Placement Details

  • Section ID: module-4
  • Sort Order: End of section
  • Filename Slug: makemigrations-auto-now-add-impossible-add-field-fix

🤖 Generated by FAQ Bot

Closes #380

@alexeygrigorev
alexeygrigorev merged commit a0d80fb into main Sep 9, 2026
2 checks passed
@alexeygrigorev
alexeygrigorev deleted the faq-bot/issue-380 branch September 9, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FAQ] the 'auto_now_add' migration prompt

1 participant