Changeset 7335
- Timestamp:
- 03/20/08 02:19:53 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/modeltests/model_forms/models.py
r7326 r7335 800 800 >>> instance = f.save() 801 801 >>> instance.file 802 u'... /test1.txt'802 u'...test1.txt' 803 803 804 804 # Edit an instance that already has the file defined in the model. This will not … … 809 809 True 810 810 >>> f.cleaned_data['file'] 811 u'... /test1.txt'811 u'...test1.txt' 812 812 >>> instance = f.save() 813 813 >>> instance.file 814 u'... /test1.txt'814 u'...test1.txt' 815 815 816 816 # Delete the current file since this is not done by Django. … … 825 825 >>> instance = f.save() 826 826 >>> instance.file 827 u'... /test2.txt'827 u'...test2.txt' 828 828 829 829 >>> instance.delete() … … 844 844 >>> instance = f.save() 845 845 >>> instance.file 846 u'... /test3.txt'846 u'...test3.txt' 847 847 >>> instance.delete() 848 848 … … 866 866 >>> instance = f.save() 867 867 >>> instance.image 868 u'... /test.png'868 u'...test.png' 869 869 870 870 # Edit an instance that already has the image defined in the model. This will not … … 875 875 True 876 876 >>> f.cleaned_data['image'] 877 u'... /test.png'877 u'...test.png' 878 878 >>> instance = f.save() 879 879 >>> instance.image 880 u'... /test.png'880 u'...test.png' 881 881 882 882 # Delete the current image since this is not done by Django. … … 891 891 >>> instance = f.save() 892 892 >>> instance.image 893 u'... /test2.png'893 u'...test2.png' 894 894 895 895 >>> instance.delete() … … 910 910 >>> instance = f.save() 911 911 >>> instance.image 912 u'... /test3.png'912 u'...test3.png' 913 913 >>> instance.delete() 914 914
