vitorfs / colossus

Self-hosted email marketing solution
https://colossus.readthedocs.io
MIT License
503 stars 128 forks source link

Can't import CSV or paste subscribers on local server #26

Closed alexauvray closed 5 years ago

alexauvray commented 5 years ago

image

When I try to paste email addresses :

Request Method: | POST
-- | --
http://127.0.0.1:8000/lists/3/subscribers/import/paste/
2.1
IntegrityError
NOT NULL constraint failed: colossus_subscribers.domain_id
/usr/local/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py in execute, line 296
/usr/local/opt/python/bin/python3.7
3.7.0
['/Users/alex/Desktop/Colossus',  '/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python37.zip',  '/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7',  '/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7/lib-dynload',  '/usr/local/lib/python3.7/site-packages',  '/Users/alex/Desktop/Colossus']
Thu, 27 Sep 2018 11:26:27 +0000
alexauvray commented 5 years ago

Any idea how to solve that ?

alexauvray commented 5 years ago

https://stackoverflow.com/questions/25964312/not-null-constraint-failed-after-adding-to-models-py

vitorfs commented 5 years ago

Fixed on the abovementioned commit