Thanks for the help, CSS is always my gremlin
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/TmoW1R-DflQJ.
To post to this group, send email to django-use
I know you can run multiple admin sites, but the only reason I can see for
doing it is to have a full admin and other customized admin sites for
different types of users. This is possibly even a stretch, and really just a
guess.
What are some of the use cases for multiple admin sites?
--
Yo
That makes sense. Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/Hz0DW_-dSwAJ.
To post to this group, send email to django-users@googlegroups.com.
T
I have 2 tables, document and event. I want to retrieve the document url and
the event date but it seems like I can't do this in a single query set and
that is then used directly in a template. This was my first thought:
context = {
'minutes': Document.objects.filter(documentType=1,
eve
So, how I actually solved it was even a bit different:
Document.objects.filter(documentType=1,
event__eventType=1).annotate(Max('event__start_date')).order_by('event__start_date__max')
I had to use the Max function because the relationship is actually a many to
many. Even if it was just a stand
I had previously typed (but obviously not sent) a thank you ... so, thank
you. That was what I was looking for and did lead me to my ultimate
solution.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
h
Is there any particular reason why it's assumed you won't be performing a
Max on a CharField?
I tried to create the following QuerySet:
Document.objects.filter(documentType=1,
event__eventType=3).annotate(event_date=Max('event__start_date'),
subcommittee=Max('event__subcommittee__name')).orde
I have a 3 table solution
class Organization(models.Model):
name = models.CharField("Organization's name", max_length=100)
class OrganizationDepartment(models.Model):
organization = models.ForeignKey(Organization)
name = models.CharField("Name", max_length=100)
contacts
it looks like this is the best way to tackle the problem.
http://stackoverflow.com/questions/1724317/django-exclude-on-a-many-to-many-relationship-through-a-third-table
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on
Is there a way to select a list of group by columns?
The aggregation methods seem only apply to a single model but I want to use
fields from different models to group by.
select org.id as organization_id,
dep.id as department_id,
cat."catId",
max(cat.name) as name,
I've noticed that instead of generating an error, if a filter or tag is
used that is not found in a {% load %} item, the include that contains the
error is just skipped. Is there anyway to debug which filter/tag is failing?
--
You received this message because you are subscribed to the Google G
I want to use my own logout template but it doesn't want to pick it up. The
login template worked just fine, but for anything that's already in the
admin's template/registration folder, it only wants to use those. I tried
putting my templates folder before the admin templates folder in the list
I do have a views that are basically just proxies for the author views, but I
was under the impression that if I just wanted to replace the registration
templates then all I needed was a registration directory in my templates
directory with the right file names. From there it should just take th
Sorry, auto correct strikes again. I was trying to reply quickly from my
phone. I meant auth, not author views.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-us
Am I wrong about how templates work?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/FVBKI9qS2PQJ.
To post to this group, send email to django-users@googleg
That's fine, but I was under the impression that the templates could be
overridden just by creating the proper path in my template directories. Is
that not true?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the we
Cool, thanks for the confirmation.
I do have my template directories explicitly listed in TEMPLATE_DIRS. I even
made sure that my app's templates came before the admin templates, but for
some reason it's not picking up my /registration/logged_out.html and the
others that show up in the admin's
*light bulb* I forgot about my development vs production settings. I was
only changing the TEMPLATE_DIRS in the main settings.py that represents my
production settings. I'm not in a place where I can test this but I'm almost
certain that's what the problem is.
--
You received this message beca
Correct
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/K5yKllF_gPcJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe fro
btw, I was correct, it was the development settings causing the problem
On Wed, Jul 13, 2011 at 1:43 PM, Joshua Russo wrote:
> Correct
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discuss
Ok, so I've created a structure of selectable properties, that for the most
part is a straight forward many-to-many relationship. What I've added is a
character field in the relationship table that should conditionally display
based on the setup of the property being selected.
What I wanted to
I am using the through keyword. I'm just trying to figure out the
most efficient way to create a form field and widget to update the data.
What I'm struggling with is how a ManyToMany field with an intermediate
table containing extra fields fits into the ModelForm saving. I'm just not
sure wher
Someone tell me where I'm going wrong conceptually here, I feel like I'm
making this too hard.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/T5m8OIVMyusJ
My problem is that I have multiple values and I need to associate the list
of extra fields with selected relations for the ManyToMany relation. Below
is a simplified version of what my setup is.
I want to create an edit form for Organization, but I'm struggling with how
best to save (and re-re
Ok, so I can retrieve this extra data in the __init__ of the model form, but
it seems like I will need to skip all of the cleaning and automatic
validation of the form; because the data, to be displayed with the
associated checkbox will have to be included with the items field in the
Organizati
Ya, sorry, I was just getting frustrated because I was taking longer than I
wanted to implement this. The formset is what I ended up with. The tricky
part is still that I want a defined list of options in the formset, so I
can't just make it a model formset. I haven't worked in Django in a while
Ok, so I've created a fairly simple form:
class OrganizationItemForm(AuditModelForm):
selected = forms.BooleanField()
extraRequired = forms.BooleanField(widget=forms.HiddenInput)
multiLineInfo = forms.BooleanField(widget=forms.HiddenInput)
def __init__(self, *args, **k
Or am I not using these concepts as intended?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/UvoTGqPzDBoJ.
To post to this group, send email to django-user
Really? Nothing? Do you need more information? From the lack of response I
feel like I'm completely off the mark and nobody wants to tell me.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://grou
Ok, I apologize. Here is a fuller representation of what I'm doing. I had a
hard time figuring out how much was enough versus too much. This is
simplified, but I think it represents what I'm trying to do. For instance,
don't pay too much attention to the save logic in the view, I haven't
actual
I realize that I went from too little information, to too much information
in the previous post, so this is an attempt to find a middle ground.
What I'm building is the ability to have a list of checkable options, and
depending on the setup for a give option it may have a text field to enter
ad
It's more that I want to have different ways of displaying the same form
field. I want the text field to be on the same line as the checkbox when
it's an input field and below it when it's displayed as a textarea. There's
also the point of changing the required setting of the same field based on
I have a model formset that's displaying an extra form, but when I save I
always get that form saved as an empty entry. How do I tell it not to save
the model forms that I don't edit? It doesn't happen this way in the admin,
does it?
--
You received this message because you are subscribed to t
Ok, I figured out why, but I still don't know how to fix it.
I set a dropdown to empty_label = None, which automatically selects the
first element. I want that, but the form then thinks it has changed because
the value in the list of initial values is empty for that field, and I can't
see how
Nm, I got it
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/django-users/-/lYt3r0vdv4cJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscrib
I just needed to retrieve the first pk value from the field's queryset in
the init of the form and set the initial value there.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To view this discussion on the web visit
https://groups.google.com/
201 - 236 of 236 matches
Mail list logo