Django creates migration for actstream after Foreign key to Action
See original GitHub issueHello!
I have created own model Notification. There is foreign key to actstream Action:
class Notification(models.Model):
user = models.ForeignKey(User)
action = models.ForeignKey(Action)
is_read = models.BooleanField(default=False)
And when I run manage.py makemigrations myapp
django creates one more migration for actstream.
Here it is:
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('actstream', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='action',
name='data',
),
]
So what should I do?
Can I migrate it? But in which way will I migrate it in deploy?
Issue Analytics
- State:
- Created 8 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
25551 (makemigrations when adding a ForeignKey to a newly ...
When adding a new model and a ForeignKey to it as well a unique_together constraint ... Django's migrations framework produces the following summary...
Read more >Django activity stream filter Actions by foreignkey in target model
It seems you can just pass your filters as **kwargs : model_stream(FillingSystem, filling_system__client__slug='my-slug').
Read more >Changing choices to a ForeignKey using Django migrations
The proper way to do it is in three distinct steps/migrations: Create the Category model and add a foreign key to it in...
Read more >Migrating to a Custom User Model in Django - Caktus Group
If you have foreign keys in these other apps to Django's built-in auth.User model, you'll likely need to include them in the data...
Read more >Designing the blog data schema | Django 2 by Example
Add the following lines to the models.py file of the blog application: ... For this field, Django will create a foreign key in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is my env. I installed actstream from git commit f725aaf73a42812793b5feeaa4900458e5e11edf
Here is my environment,
Python version
Maybe this is worth mentioning that I recently upgraded from Django 1.7 to 1.8.8. I updated actstream at the same time.