On Fri, Feb 6, 2009 at 8:33 AM, Muslu Yüksektepe
<[email protected]>wrote:

> my model:
> #-*- coding: utf-8-*-
> from django.db import models
> from django.contrib import admin
> import re
> import os,sys
> from datetime import datetime
> from sorl.thumbnail.fields import ImageWithThumbnailsField
> #
> class Fotoalbum(models.Model):
>     baslik = models.CharField(max_length=100,verbose_name="Başlık",
> help_text='Max: 100 Karakter')
>     slug = models.SlugField(max_length=300,verbose_name="Otomatik Link",
> help_text='Max: 300 Karakter')
>     tarih = models.DateTimeField(verbose_name="Yayın Tarihi",
> default=datetime.now)
>     guncelleme = models.DateTimeField(auto_now=True)
>     etiketler = models.CharField(max_length=100, help_text='Max: 100
> Karakter')
>     image1 = ImageWithThumbnailsField(blank=True,
> upload_to='fotoalbum/%Y/%m/%d', thumbnail={'size': (150,
> 150)},verbose_name="1. Resim")
>     image1aciklama =
> models.CharField(max_length=200,blank=True,verbose_name="Açıklama",
> help_text='Max: 200 Karakter')
>     image1sil = models.BooleanField(verbose_name="Sil", help_text=" Dosyayı
> sistemden silmez sadece veritabanından siler.")
>
>     def save(self):
>         if self.image1sil:
>             self.image1 = ""
>             self.image1aciklama = ""
>             self.image1sil = False
>         super(Fotoalbum, self).save()
>
>     def get_tag_list(self):
>         return re.split(" ", self.tags)
>
>     def __unicode__(self):
>         return self.baslik
>
> my django version is 1.0.2
> python 2.5.2
> i added codes but nothing changed
>
> 2009/2/6 Alex Gaynor <[email protected]>
>
>>
>>
>> On Fri, Feb 6, 2009 at 7:39 AM, Muslu Yüksektepe <
>> [email protected]> wrote:
>>
>>> i tryed but it doesnt work.
>>>
>>> 2009/2/5 Muslu Yüksektepe <[email protected]>
>>>
>>> thanx i will try tomorrow.
>>>> i hope it will be ok
>>>>
>>>
>>>
>>>
>>>
>> You need to provide more information than simply it doesn't work, try
>> dpasting a traceback.
>>
>>
>> Alex
>>
>> --
>> "I disapprove of what you say, but I will defend to the death your right
>> to say it." --Voltaire
>> "The people's good is the highest law."--Cicero
>>
>>
>>
>
> >
>
What do you mean nothing changed?  Does the view throw an exception, does it
not do what you want?  You aren't providing very much information.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to