#NEWLINE# @ any_field . register ( models . DateTimeField ) #NEWLINE# def any_datetime_field( field , **kwargs ) : #NEWLINE# #INDENT# "\n    Return random value for DateTimeField,\n    skips auto_now and auto_now_add fields\n\n    >>> result = any_field(models.DateTimeField())\n    >>> type(result)\n    <type 'datetime.datetime'>\n    " #NEWLINE# from_date = kwargs . get ( 'from_date' , datetime ( 1990 , 1 , 1 ) ) #NEWLINE# to_date = kwargs . get ( 'to_date' , datetime . today ( ) ) #NEWLINE# return xunit . any_datetime ( from_date = from_date , to_date = to_date )