I'm having an issue passing a buffered StringIO to the FileField
object.
Here is my code:
##models.py
from django.db import models
from business.models import Business
class PdfFile(models.Model):
business = models.ForeignKey(Business)
pdf = models.FileField(upload_to='get_pdf_path')
The problem with this solution is that you are unable to sort and/or
filter by anything you "wire" to the User admin page. #9463 is one I
have posted a bit ago.
On Dec 9, 9:43 am, "Ronny Haryanto" <[EMAIL PROTECTED]> wrote:
> On Tue, Dec 9, 2008 at 8:58 PM, mahesh <[EMAIL PROTECTED]> wrote:
> > H
I have an admin object where I want to pass in the request.user on
save. It works fine in my normal admin class but not for the inline
version.
(works fine here):
class RentAdmin(admin.ModelAdmin):
exclude = ['rented_by']
list_display = ('renter', 'movie', 'late', 'owed', 'paid',
'due_dat
Great link. I was really excited to try it.
Here is my new inline:
class rentalInline(admin.TabularInline):
model= Rent
extra = 3
raw_id_fields = ('movie',)
exclude = ['rented_by']
def save_formset(self, request, form, formset, change):
instances = formset.save(commit
DB is sqlite3. Deleted DB file syncd and still same traceback.
here is proper traceback paste: http://dpaste.com/103517/
On Dec 28, 9:10 pm, Praveen wrote:
> This is your database error..
>
> On Dec 28, 8:32 am, Timboy wrote:
>
> > Great link. I was really excited to try it
Still no solution to this. It has been confirmed by another user. Is
it a bug?
On Dec 29 2008, 2:33 pm, Timboy wrote:
> DB is sqlite3. Deleted DB file syncd and still same traceback.
> here is proper traceback paste:http://dpaste.com/103517/
>
> On Dec 28, 9:10 pm, Praveen wrote:
&
ed
to call formset.save_m2m() to ensure the many-to-many relationships
are saved properly."
Works now just had it in the wrong spot. thx!
On Jan 6, 9:23 pm, "Karen Tracey" wrote:
> On Tue, Jan 6, 2009 at 10:10 PM, Timboy wrote:
>
> > Still no solution to this. It has been confi
Shameless bump...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
django-users+un
I've created a calendar view and users can select multiple calendars
with checkboxes. It passes this: ?
calendars=CALNAME&calendars=CALNAME2&calendars=CALNAME2 to the url and
returns the proper events but when I change months it goes back to the
default calendar...
how can I make the selected cal
I figured it out. I passed the requested calendars to my template and
used a forloop to pass them as a get request to the URL.
On Mar 26, 4:23 pm, Timboy wrote:
> I've created a calendar view and users can select multiple calendars
> with checkboxes. It passes this: ?
> cal
In two lines:
from django.core.mail import send_mail
send_mail('Subject here', 'Here is the message.', 'f...@example.com',
['t...@example.com'], fail_silently=False)
Mail is sent using the SMTP host and port specified in the EMAIL_HOST
and EMAIL_PORT settings. The EMAIL_HOST_USER and EMAIL_
What's the best way to add users with an auto generating username? ie:
Taub.John, Smith.Tim, Smith.Tim2
On Apr 1, 3:37 am, johan.u...@student.hpi.uni-potsdam.de wrote:
> Best way is to write your own authentication backend I think.
>
> Check the
> docs:http://docs.djangoproject.com/en/dev/topic
I need to create a multiple page form that upon submit the information
is saved to the database so the user can finish it later.
I want to be able to check the data filled out on the form and
depending on the values entered present different pages to the user.
I know this is possible, I just don
Does this data get checked to make sure that it is what was on the
form?
If I have a list of choices 1,2,3 and someone modifies the form to add
a # 4 and chooses that will django forms catch it or do I need to make
sure on every one of my fields that the entered value is what was in
the list?
TI
Thank you very much Alex!
On Apr 23, 9:28 pm, Alex Gaynor wrote:
> On Fri, Apr 24, 2009 at 12:25 AM, Timboy wrote:
>
> > Does this data get checked to make sure that it is what was on the
> > form?
>
> > If I have a list of choices 1,2,3 and someone modifies th
I basically want to be able to skip to a specific step in the form
wizard process.
On Apr 20, 5:56 pm, Timboy wrote:
> I need to create a multiple page form that upon submit the information
> is saved to the database so the user can finish it later.
>
> I want to be able to ch
Well I really want the data to post to the database at the same time
as well. Thanks n e way but I'll just re-write the form wizard to do
what I want.
On Apr 23, 9:51 pm, Timboy wrote:
> I basically want to be able to skip to a specific step in the form
> wizard process.
>
>
I want my users to be able to be updated for changes to specific
models objects.
Let's say a user does a search of vehicle listings and the search
returns 3 cars. I want them to be able to be alerted when any of those
three car listings get updated. What's the best way to accomplish
this?
TIA
--
user?
Thanks.
On Apr 23, 10:20 pm, Alex Gaynor wrote:
> On Fri, Apr 24, 2009 at 1:15 AM, Timboy wrote:
>
> > I want my users to be able to be updated for changes to specific
> > models objects.
>
> > Let's say a user does a search of vehicle listings and the search
I'm interested as well. You'd want to have a 500 with a nice
unexpected maintanence message.
On Apr 24, 4:51 am, realfun wrote:
> Hi,
>
> I build a website(fayaa.com) on Bluehost using Django, but this month
> database down 3 times, during that period, user can only see an
> "Unexpected Exceptio
best way to cross reference the new ones and the
best way to handle the notifications that the specific VehicleSearch
was updated with N new vehicles and there were changes to N vehicles.
TIA
On Apr 23, 10:42 pm, Timboy wrote:
> Let me be more specific to my needs:
>
> Here is my exam
I am trying to make a pk for an object that starts with the year
followed by seven additional digits. YYXXX I want the digits to
automatically increase like normal.
I'm guessing I need to pass force_insert=True to my save if not
self.pk. I'd appreciate some advice.
TIA
--~--~-~--~---
Thank you for your time and response Malcom, I appreciate it very
much.
On Apr 29, 3:42 pm, Malcolm Tredinnick
wrote:
> On Wed, 2009-04-29 at 15:37 -0700, Timboy wrote:
> > I am trying to make a pk for an object that starts with the year
> > followed by seven additional digits. Y
I am looking to make a webmail client proof of concept in django. I
ran across twisted mail and this post:
http://clemesha.org/blog/2009/apr/23/Django-on-Twisted-using-latest-twisted-web-wsgi/
showing how to use django on twisted.
Can anyone point me in the right direction for actually getting da
I have a normal User model for our private users of our project we
also have a UserProfile for those users.
We need to have a public portion of our site as well with a separate
user namespace.
Please advise the best way to achieve our goal.
TIA
--~--~-~--~~~---~--~--
me profiles
> public/private. A couple usernames will be taken, but that shouldn't
> be a big deal.
>
> If you actually want a second namespace, I'm not sure of the best way
> to proceed.
>
> On May 18, 9:28 pm, Timboy wrote:
>
> > I have a normal User model fo
> On May 20, 1:09 am, Timboy wrote:
>
> > Initially we will have in the ballpark of 10,000 Private users. Anyone
> > have an idea on an additional user namespace?
>
> > On May 19, 8:42 am, Aneesh wrote:
>
> > > How many private users do you have? If it'
Anyone familiar with using twisted and hooking it to a model?
On May 16, 8:55 pm, Timboy wrote:
> I am looking to make a webmail client proof of concept in django. I
> ran across twisted mail and this
> post:http://clemesha.org/blog/2009/apr/23/Django-on-Twisted-using-latest-t...
>
Having issues saving model from within the shell.
Using File from from django.core.files import File
http://pastebin.com/f3030ca1e
Tried this several different ways...
TIA
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
29 matches
Mail list logo