Filter by sum of filtered related objects?

2019-01-03 Thread Dustin Wyatt
Given the following models: class Transaction(models.Model): amount = models.IntegerField() date = models.DateField() terms = models.ForeignKey('Terms') class Terms(models.Model): name = models.CharField(max_length=100) timezone = models.CharField(max_length=50) I need to annotate

Re: Filter_horizontal, applying filter on the right box - chosen items

2016-04-06 Thread Dustin Dobernig
I know this is question is old but I was looking for the solution myself and couldn't find an quick answer so I ended up just doing it myself. My solution is here https://djangosnippets.org/snippets/10560/ -- You received this message because you are subscribed to the Google Groups "Django

Re: Unable to log in to admin using RemoteUserMiddleware

2011-05-01 Thread Dustin
ng command (substitute 'usern...@your-server.com' with the username you use for your server): UPDATE auth_user SET is_superuser='1' where username = 'username@your- server.com'; I hope this helps anyone that has the same issue. Feel free to contact me with any questions at dtdan...@indiana.edu Chee

Re: Unable to log in to admin using RemoteUserMiddleware

2011-05-01 Thread Dustin Dannenhauer
ng command (substitute ' usern...@your-server.com' with the username you use for your server): *UPDATE auth_user SET is_superuser='1' where username = ' usern...@your-server.com';* I hope this helps anyone that has the same issue. Feel free to contact me with any questions at dtdan...@indiana.edu Chee

Unable to log in to admin using RemoteUserMiddleware

2011-04-30 Thread Dustin
=7a12438967014133 Any help will be extremely appreciated :) Thank you, Dustin -- 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

Re: Any advice on why my template inheritance does not seem to be working??

2011-02-09 Thread Dustin
it worked!! This makes much more sense now, in terms of how template inheritance works... Thanks, Dustin On Feb 9, 11:14 am, creecode <creec...@gmail.com> wrote: > Hello Dustin, > > I suspect your are confused about how inheritance works. > > On Feb 9, 7:43 am, Dusti

Any advice on why my template inheritance does not seem to be working??

2011-02-09 Thread Dustin D
to figure this out, reading stuff online, and nothing so far. Any help will be very much appreciated. Thank you, Dustin P.S. I know my files might seemed to be named funny, but that's because I wasn't sure if the actual filename of the parent and/or child matter to the template system. Any advice

Re: image servers?

2011-01-10 Thread Dustin
I haven't used Rackspace, but i would assume (hope) they support remote mounting. I would use sshfs to mount the Rackspace server on your local drive (on the Django server) and reference that in MEDIA_ROOT e.g. sshfs usern...@my.rackspace.domain:/path/to/rackspace/home/dir /mnt/ rackspace

Best model layout for option variance

2011-01-10 Thread Dustin
I am building an interface that consists of several fields, mostly drop down boxes (menus). Depending on the menu item (option) selected in each menu, however, there may be a unique set of "properties" that the user should be presented with. e.g. "Option A may have the customizable properties

Re: Form Wizard won't proceed past the second step

2009-08-14 Thread Dustin
Looks like you're not implementing the done() method required in FormWizard sub-classes. http://docs.djangoproject.com/en/dev/ref/contrib/formtools/form-wizard/#creating-a-formwizard-class On Aug 14, 11:29 am, Adam Olsen wrote: > I've got a FormWizard with two forms in it.  

YAFU: Yet Another File Upload app...

2007-11-07 Thread Dustin Lang
Hi, It didn't seem like any of the current Django file upload apps provided exactly the functionality I needed, so I hacked my own. If the community is interested, I can try to polish it a bit and contribute it. We deal with large uploads - up to hundreds of megabytes - so I wanted the

Re: Django on Debian Sarge?

2006-07-03 Thread Dustin Laurence
nstall/ that the previous note about Sarge's mod_python not being sufficient is wrong? Presumably it should come from someone who knows first-hand. Dustin pgp4q3VN7qY9L.pgp Description: PGP signature

Re: Django on Debian Sarge?

2006-07-02 Thread Dustin Laurence
ut django from svn, and follow the > instructions on the tutorial. OK, well, that's reassuring, and maybe indicates that that comment is wrong and Sarge is likely to work too. Dustin pgpexRcom6bJ0.pgp Description: PGP signature

Django on Debian Sarge?

2006-07-02 Thread Dustin Laurence
. Dustin pgpZNjkLIvwIb.pgp Description: PGP signature