{"action":"created","issue":{"url":"https://api.github.com/repos/prawn-cake/simple-models/issues/3","labels_url":"https://api.github.com/repos/prawn-cake/simple-models/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/prawn-cake/simple-models/issues/3/comments","events_url":"https://api.github.com/repos/prawn-cake/simple-models/issues/3/events","html_url":"https://github.com/prawn-cake/simple-models/issues/3","id":110677015,"number":3,"title":"callables as default values","user":{"login":"kevinsl","id":609533,"avatar_url":"https://avatars.githubusercontent.com/u/609533?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsl","html_url":"https://github.com/kevinsl","followers_url":"https://api.github.com/users/kevinsl/followers","following_url":"https://api.github.com/users/kevinsl/following{/other_user}","gists_url":"https://api.github.com/users/kevinsl/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsl/subscriptions","organizations_url":"https://api.github.com/users/kevinsl/orgs","repos_url":"https://api.github.com/users/kevinsl/repos","events_url":"https://api.github.com/users/kevinsl/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/prawn-cake/simple-models/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"prawn-cake","id":5894089,"avatar_url":"https://avatars.githubusercontent.com/u/5894089?v=3","gravatar_id":"","url":"https://api.github.com/users/prawn-cake","html_url":"https://github.com/prawn-cake","followers_url":"https://api.github.com/users/prawn-cake/followers","following_url":"https://api.github.com/users/prawn-cake/following{/other_user}","gists_url":"https://api.github.com/users/prawn-cake/gists{/gist_id}","starred_url":"https://api.github.com/users/prawn-cake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prawn-cake/subscriptions","organizations_url":"https://api.github.com/users/prawn-cake/orgs","repos_url":"https://api.github.com/users/prawn-cake/repos","events_url":"https://api.github.com/users/prawn-cake/events{/privacy}","received_events_url":"https://api.github.com/users/prawn-cake/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-10-09T15:04:34Z","updated_at":"2015-10-09T18:25:05Z","closed_at":null,"body":"Hello, thanks for this module! It's very interesting. I'm using it in a project now and trying to extend it. I'm not sure I understand how a field's default values are supposed to work when they are specified as callable types (I'm using `datetime.now`). Here's an example of my problem:\r\n\r\n```python\r\nfrom datetime import datetime\r\nfrom simplemodels.fields import SimpleField\r\nfrom simplemodels.models import Document\r\nimport time\r\n\r\n\r\nclass Message(Document):\r\n    msg = SimpleField(required=True)\r\n    ts = SimpleField(required=True, default=datetime.now)\r\n\r\n\r\nmessage1 = Message(msg='first')\r\n\r\ntime.sleep(2)\r\n\r\nmessage2 = Message(msg='second')\r\n\r\nprint message1\r\nprint message2\r\n```\r\n\r\nI'd expect message1 and message2 to have ts fields which are 2 seconds off. But printing their contents shows the timestamps are the same.\r\n\r\n```\r\n{'msg': 'first', 'ts': datetime.datetime(2015, 10, 9, 7, 58, 45, 358320)}\r\n{'msg': 'second', 'ts': datetime.datetime(2015, 10, 9, 7, 58, 45, 358320)}\r\n```\r\n\r\nDo you have any suggestions here? thanks"},"comment":{"url":"https://api.github.com/repos/prawn-cake/simple-models/issues/comments/146954330","html_url":"https://github.com/prawn-cake/simple-models/issues/3#issuecomment-146954330","issue_url":"https://api.github.com/repos/prawn-cake/simple-models/issues/3","id":146954330,"user":{"login":"kevinsl","id":609533,"avatar_url":"https://avatars.githubusercontent.com/u/609533?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinsl","html_url":"https://github.com/kevinsl","followers_url":"https://api.github.com/users/kevinsl/followers","following_url":"https://api.github.com/users/kevinsl/following{/other_user}","gists_url":"https://api.github.com/users/kevinsl/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsl/subscriptions","organizations_url":"https://api.github.com/users/kevinsl/orgs","repos_url":"https://api.github.com/users/kevinsl/repos","events_url":"https://api.github.com/users/kevinsl/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsl/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T18:25:05Z","updated_at":"2015-10-09T18:25:05Z","body":"Thanks! That works but now I am running into another issue. Taking the above code, if I add a validator to `ts` field like `, validators=[datetime])` I get a validation error. It seems it's trying to pass the datetime.now method into the validator."}}