post save signal inline admin

2014-02-24 Thread Ali Rıza KELEŞ
. Is there any quick / easy fix? Thanks. -- -- Ali Rıza Keleş -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.co

Re: http auth using django auth_user table

2011-07-10 Thread Ali Rıza KELEŞ
2011/7/10 Cal Leeming [Simplicity Media Ltd] : > The only connection this question has with Django, is the encryption method > that Django uses, and therefore is inappropriate for this forum. Yes, right. It had seemed me connected. Sorry for wasting your

http auth using django auth_user table

2011-07-10 Thread Ali Rıza KELEŞ
_Empty_Passwords Off Auth_MySQL_Encrypted_Passwords on Auth_MySQL_Username_Field email Auth_MySQL_Password_Field password Auth_MySQL_Encryption_Types PHP_MD5 AuthUserFile /dev/null Require valid-user -- -- Ali Rıza Keleş -- You received this message because you are subscribed to the Google Groups "Dja

Re: overriding saving fails in loop

2010-03-10 Thread Ali Rıza Keleş
El mié, 10-03-2010 a las 17:28 -0500, Shawn Milochik escribió: > I think you missed my point, or I explained it badly. > > 1. In makeOrder, change i.save() to i.save(reorder = False). > > 2. Change the save function to something like the following > (untested): > > def save(self, *args,

Re: overriding saving fails in loop

2010-03-10 Thread Ali Rıza Keleş
El mié, 10-03-2010 a las 15:37 -0500, Shawn Milochik escribió: > Every time you save(), you call makeOrder(). Every time you run > makeOrder(), you call save(). You've introduced an infinite loop. > Well, infinite until Python decides enough is enough. > Yes right. But I need to reorder them all

overriding saving fails in loop

2010-03-10 Thread Ali Rıza Keleş
Hi all, I want to override saving of one of my models. After saving any record, I am trying to reorder them all. class Subject(models.Model): slug = models.SlugField(db_index=True, unique=True) name = models.CharField(max_length="120") order = models.CharField(blank = True,

Re: have trouble with safe and linebreaks together

2010-02-22 Thread Ali Rıza Keleş
html > Yes maybe, but I do not know how it would be if I'd want to reuse them by some other applications like html2pdf or another etc.. Wolud it be better to add some code in linebreak filter? if not startswith(('', '',..)): something like that. > On Feb 21, 4:41 pm, Ali Rıza Ke

Re: have trouble with safe and linebreaks together

2010-02-22 Thread Ali Rıza Keleş
aks }} > thanks.. > > > > On Feb 21, 9:41 pm, Ali Rıza Keleş <ali.r.ke...@gmail.com> wrote: > > Hi all, > > > > I have a problem about template language. > > > > In my model there is a text field for body text of entries. And I markup > >

have trouble with safe and linebreaks together

2010-02-21 Thread Ali Rıza Keleş
ng etc, if it is necessary in text. How can I fix this? Thanks. -- Ali Rıza Keleş -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe fro

how to use model name in templates

2010-01-25 Thread Ali Rıza Keleş
.modelName }} But it doesn't work.. :( I tried to imitate get_absolute_url, but failed.. Thanks.. -- Ali Rıza Keleş -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com.

Re: templatetag produce extra newline

2010-01-22 Thread Ali Rıza Keleş
\(.*\)\n/\1/' -> find_which_display.html Yes funny but it works quite well. Thanks > > On Fri, Jan 22, 2010 at 1:15 PM, Ali Rıza Keleş <ali.r.ke...@gmail.com> wrote: > > > > On Fri, 2010-01-22 at 12:55 -0500, Bill Freeman wrote: > >> I'm pretty sure that yo

Re: templatetag produce extra newline

2010-01-22 Thread Ali Rıza Keleş
i tried to return like below but it was same. ... return {'display_url': remove_newlines(display_url)} def remove_newlines(text): normalized_text = normalize_newlines(text) return mark_safe(normalized_text.replace('\n', '')) Thanks -- Ali > On Fri, Jan 22, 2010 at 12

templatetag produce extra newline

2010-01-22 Thread Ali Rıza Keleş
m/images/2010/01/22/test_image.jpg</a> '); ... and of course it fails. I am sure that my templatetag find_which_display does not produce this newline, i tried and tested it, also I dont know who does and how I can fix it. Thanks for any help.. -- Ali Rıza Keleş -- You received this message

hi.. supress the flatpages' fields' help texts

2010-01-06 Thread Ali Rıza Keleş
Hi all, How can I supress help_texts of flatpages' fields without modifying core code of django contrib. Thanks. -- Ali Rıza Keleş -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

custom query unique and ordered

2009-11-30 Thread Ali Rıza Keleş
Hi all, I need a little custom db query. My db table with sample data: id content_id author_id order is_public 1 68 1 1 1 3 189 2 2 1 4 154 2

edit unique slug field

2009-10-12 Thread Ali Rıza Keleş
I have a slug field(let's call A) which is prepopulated from another charfield(let's call B) and unique. On the admin page, when I want to edit B, at the same time A, A would not be changed. I try manually, it doesn't let me to edit it. How can I edit unique, prepopulated slug fields on admin

Re: opener.dismissAddAnotherPopup error tinymce

2009-09-24 Thread Ali Rıza KELEŞ
But i just defined document.domain in my tinymce initializer, nowhere else.. Is there anywhere else should I define it? 2009/9/24 Ali Rıza KELEŞ <ali.r.ke...@gmail.com>: > Hi, > > i did this patch, but still doesn't work. > http://code.djangoproject.com/attachment/ticket/1032

Re: opener.dismissAddAnotherPopup error tinymce

2009-09-24 Thread Ali Rıza KELEŞ
Hi, i did this patch, but still doesn't work. http://code.djangoproject.com/attachment/ticket/10327/10327-r9969.diff I am using use the latest svn revision, -revision 11593-. Only in options.py, new lines are not located as you mentioned in your patch. There is not on line 681, 681

opener.dismissAddAnotherPopup error tinymce

2009-09-22 Thread Ali Rıza Keleş
e has no tinymce, everything works very well. My tinymce initializer has """ document.domain = 'arha.com.tr' tinyMCE.init({ mode: "textareas", """ because media files are being served via another server named as a subdomain. Thanks..

Re: explanation of: {{ action.action_time|date:_("DATETIME_FORMAT") }}

2009-08-18 Thread Ali Rıza Keleş
Please look up at the top of your codes, i think you'll see something like this: from django.utils.translation import ugettext_lazy as _ That's it!.. -- Ali Rıza On Tue, 2009-08-18 at 15:08 -0700, Margie Roginski wrote: > I was trying to figure out how to run the date filter, using >

carrying value from ForeignKey

2009-08-16 Thread Ali Rıza Keleş
Hello, I want to carry value as default from one model to another. For example: class Text(models.Model): text = models.TextField(blank = True) name = models.SlugField(db_index=True, unique=True) class News(models.Model): content = models.ForeignKey(Text, blank = True, null =

Re: save as a new entry

2009-08-12 Thread Ali Rıza Keleş
On Wed, 2009-08-12 at 15:55 -0700, Daniel Roseman wrote: > On Aug 12, 10:40 pm, Ali Rıza KELEŞ <ali.r.ke...@gmail.com> wrote: > > In admin interface, in editing section of a model, I need a button to > > save as a new entry. There are four button at the end of the editing &

save as a new entry

2009-08-12 Thread Ali Rıza KELEŞ
In admin interface, in editing section of a model, I need a button to save as a new entry. There are four button at the end of the editing form. - Delete, - Save and Add New, - Save And Continue Editing, - Save. I want to save the currently editing entry as a new entry. For example: entry is: