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:
id
On Wed, 2009-08-12 at 15:55 -0700, Daniel Roseman wrote:
> On Aug 12, 10:40 pm, Ali Rıza KELEŞ 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
> > form.
> > - Del
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 = True,
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
> SETTINGS.
f same page 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
s
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
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Ş :
> Hi,
>
> i did this patch, but still doesn't work.
> http://code.djangoproject.com/attachment/ticket/10327/10327-r9969.diff
>
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 pa
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
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 ema
edia..com/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 re
line doesn't have the second.
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',
l}}" | sed ':a;N;$!ba;$s/\(.*\)\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ş wrote:
> >
> > On Fri, 2010-01-22 at 12:55 -0500, Bill Freeman wrote:
> >> I'm pret
.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
p h2, strong 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 unsub
dy|linebreaks }}
>
thanks..
>
>
>
> On Feb 21, 9:41 pm, Ali Rıza Keleş 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
> > my text with som
kup/usage_templates.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.
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, max_leng
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
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, **kwargs
_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
"Django
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 time..
> Please refer to http://code.djang
.
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.
23 matches
Mail list logo