Hi, I have a problem UserAdmin with GenericStackedInline in Django 1.5c2.
#model.py
from django.contrib.auth.models import BaseUserManager, AbstractBaseUser,
PermissionsMixin
from django.conf import settings
#etc...
class Addresses(models.Model):
"""
Dane adresowe.
"""
na
When i create formset in template i must used loop "for":
{{ formset_create_company.management_form }}
{% for form in formset_create_company.forms %}
{{ form.postal_code.label }}
{{ form.postal_code }}
{{ form.city.label
Hm.. I am not extending User Model.
I lost one class, this is real example:
Create APPs: core
SETTINGS:
#Django 1.5
AUTH_USER_MODEL = 'core.Partners'
MODELS:
# -*- coding: utf-8 -*-
from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contr
It works!
Thank you ;)
W dniu piątek, 1 marca 2013 12:43:22 UTC+1 użytkownik Witold Greń napisał:
>
> When i create formset in template i must used loop "for":
>
> {{ formset_create_company.management_form }}
>
> {% for form in
How to add prefix in generic_inlineformset_factory()? This is posible?
--
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.com.
'
{{ formset_create_private.name }} = created: ''
I need:
{{ form_create_company.name }} = created: ''
{{ formset_create_private.name }} = created: ''
W dniu wtorek, 5 marca 2013 10:20:36 UTC+1 użytkownik Witold Greń napisał:
>
> How to add prefix in generi
Thanks, django documentation that is what is missing ;)
W dniu wtorek, 5 marca 2013 10:20:36 UTC+1 użytkownik Witold Greń napisał:
>
> How to add prefix in generic_inlineformset_factory()? This is posible?
--
You received this message because you are subscribed to the Google Groups
&
I have the same problem.
How to solve it?
W dniu piątek, 1 lutego 2013 12:28:01 UTC+1 użytkownik Tejinder Singh
napisał:
>
> I have a custom app in my project named 'profiles' which contains a custom
> User model. Here is the declaration of the same:
>
> class CustomUser(AbstractUser):
> i
use you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-users/cgR4R63m0DM/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> django-user
9 matches
Mail list logo