Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to look up model from filename or argument to get fields for import #3

Open
edcrewe opened this issue Jul 4, 2019 · 5 comments

Comments

@edcrewe
Copy link
Owner

edcrewe commented Jul 4, 2019

Currently the mcsv.fields are hard coded for country in importcsv.go and these should use the looked up meta.

@edcrewe
Copy link
Owner Author

edcrewe commented Jul 25, 2019

OK done ... but need to confirm testtypes imports ok

@edcrewe
Copy link
Owner Author

edcrewe commented Aug 15, 2019

Add testtypes for integration test + need to fix build flag for integration

@edcrewe
Copy link
Owner Author

edcrewe commented Aug 15, 2019

Now we have generated country in models failing because it wants uppercase field names?

@edcrewe
Copy link
Owner Author

edcrewe commented Aug 15, 2019

If the fieldnames are not uppercase then they are private! ... doh so we have to make them all uppercase by default.

@edcrewe
Copy link
Owner Author

edcrewe commented Aug 15, 2019

Still getting import errors when use inspect generated models.go

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

No branches or pull requests

1 participant