Remove foreign key field from model

Having more info would help.

There is another techie solution to this, but you might not like it.

  1. Download DBeaver and connect your DB.
  2. Download your SQLite File as a CSV, edit your CSV in excel or w.e and delete the things you don’t want.
  3. Upload the csv to DBeaver.
  4. Make sure you Django model’s and columns reflect what’s in DBeaver. Or work through the errors if they don’t.

There are directions for all of these steps on Google, not on one web page though. Way too many steps to go into detail here.

You could also keep the Class and FK and just add a related_name = field in the parentheses, using it for another model in the future.