Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Suggestion for adding new data fields to the model #16

Closed
mrbm opened this issue Aug 9, 2012 · 4 comments
Closed

Suggestion for adding new data fields to the model #16

mrbm opened this issue Aug 9, 2012 · 4 comments

Comments

@mrbm
Copy link

mrbm commented Aug 9, 2012

I was messing around with you app, its great. However I am having a little difficulty adding new fields, specifically datetime fields and url fields. I thought it would be good if there was a timestamp of some sort upon uploading the picture, however json seems to be having issues with the datatime field and the url field...suggestions?

@pranavgarg
Copy link

one way I worked around this problem was to add the datetime field in the models and then have auto_now=True, so this insures that the image gets timestamped

@mrbm
Copy link
Author

mrbm commented Oct 5, 2012

good idea, that's what i did!

@chriscamplin
Copy link

Did anyone have any luck with this? whenever I try to add more fields the file upload still functions but I get the 'Internal Server error' message.

@sigurdga
Copy link
Owner

sigurdga commented Jun 7, 2016

Sorry I couldn't help these years ago. I tested adding a new field now, and it worked. Maybe because of upgrades to newer Django, or other fixes.

@sigurdga sigurdga closed this as completed Jun 7, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants