On Jan 21, 11:14 am, Aneurin Price wrote:
> (Apologies for the vague subject; I couldn't think how to summarise this :P)
>
> Hello all,
>
> I have an application where some models are inherited from others, like so:
> Foo
> / \
> Bar Baz
> Each object has (or may have) a parent object, wh
The only way to describe what I am trying to accomplish is through an
example. Here are my models
class B(models.Model):
credits = models.FloatField(,null=True)
class A(models.Model):
b = models.OneToOneField(B)
description = models.TextField()
I want to get a formset of A forms f
I am using newforms admin and need to be able to have a validation
check against multiple fields on the form. I was reading that all you
need to do is to go
form_change = MyCustomForm()
from within your subclass of admin.ModelAdmin
however it seems like this has changed since the post that I re
you should use
PostForm(instance=post)
--~--~-~--~~~---~--~~
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 ema
On Feb 7, 2:53 am, Pigletto <[EMAIL PROTECTED]> wrote:
> On 7 Lut, 09:58, Mackenzie Kearl <[EMAIL PROTECTED]>
> wrote:> I am having trouble finding documentation on how to add custom
> > validation to a custom model field.
>
> > example:
>
> > class P
I am having trouble finding documentation on how to add custom
validation to a custom model field.
example:
class PostalField(models.CharField):
def __init__(self,*args,**kwargs):
kwargs['max_length']= 6
super(PostalField, self).__init__(*args, **kwargs)
Hi I am trying to get a sitemap index generated however I only get
"Exception Type:ValueError
Exception Value:Empty module name"
I am not sure what I am doing wrong.
urls.py
sitemaps = {
'blog':BlogSitemap,
'gallery':GallerySitemap,
}
urlpatterns = patterns('',
you can just create a profile with a field number of times logged in.
This could be updated in a custom login view that you write.
check out http://www.djangobook.com/en/beta/chapter12/
def login(request):
username = request.POST['username']
password = request.POST['password']
user =
You should put some template code up as well i know that I recently
could not see posts that existed because
allow_future: defaults to False
http://www.djangoproject.com/documentation/generic_views/#django-views-generic-date-based-archive-day
--~--~-~--~~~---~--~~
9 matches
Mail list logo