Re: TabularInline

2023-07-30 Thread Tolga ÇAĞLAYAN
I want it to look like normal model.Admin. I want add, edit and delete to work normally. Tabularinline gets very confusing when you enter 100 pieces of data. I want it to work like below [image: Ekran görüntüsü 2023-07-29 214733.png] 30 Temmuz 2023 Pazar tarihinde saat 18:51:42 UTC+2 itibarıyla

Re: TabularInline

2023-07-30 Thread Parthian
elf, request, obj=None): >> return False # option >> On Sunday, 30 July 2023 at 02:32:51 UTC+1 Tolga ÇAĞLAYAN wrote: >> >>> This is what tabularinline looks like. I want a table here instead. I >>> want it to work like normal CRUD. Anyone have an idea a

Re: TabularInline

2023-07-30 Thread Tolga ÇAĞLAYAN
y 2023 at 02:32:51 UTC+1 Tolga ÇAĞLAYAN wrote: > >> This is what tabularinline looks like. I want a table here instead. I >> want it to work like normal CRUD. Anyone have an idea about this? >> >> I don't want that >> [image: Ekran görüntüsü 2023-07-29 214

Re: TabularInline

2023-07-30 Thread Parthian
hat tabularinline looks like. I want a table here instead. I want > it to work like normal CRUD. Anyone have an idea about this? > > I don't want that > [image: Ekran görüntüsü 2023-07-29 214456.png] > I want like this > [image: Ekran görüntüsü 2023-07-29 214733.png] > -- Y

TabularInline

2023-07-29 Thread Tolga ÇAĞLAYAN
This is what tabularinline looks like. I want a table here instead. I want it to work like normal CRUD. Anyone have an idea about this? I don't want that [image: Ekran görüntüsü 2023-07-29 214456.png] I want like this [image: Ekran görüntüsü 2023-07-29 214733.png] -- You received

Cannot remove new row in TabularInline when using autocomplete_fields

2019-03-02 Thread Germain Lem
This is my first post and contribution. I hope I do it correctly. I dont know if it is a bug or a needed feature but here is the problem. I use autocomplete_fields on a field in an admin.TabularInline, the field concerned is mandatory. When you choose a value with the autocomplete you cannot

Laying out a form like "fieldsets" and "TabularInline" on a non-"admin" page

2018-02-15 Thread Carl Brubaker
I've been trying to make a form that will get customer information: First Name Last NameMI (etc) and have been running into issues I can't seem to resolve without doing it the hard way. I was just wondering if there was an easier method? Using generic views and edit views, the

Re: How to Add radio selection in tabularInline - admin

2017-06-07 Thread Melvyn Sopacua
On Wednesday 07 June 2017 01:55:01 Pavan Kumar Polineni wrote: > class Answer(models.Model): > question = models.ForeignKey(Question) > choice_text = models.CharField(max_length=200) > answer = models.BooleanField(default=False) ^ What is that field supposed to be? Is it the "correct

How to Add radio selection in tabularInline - admin

2017-06-07 Thread Pavan Kumar Polineni
Hi, First see my models.py and admin.py before going into problem. models.py :: class Question(models.Model): question_text = models.CharField(max_length=128) topic = models.ForeignKey(Topic) category = models.CharField(max_length=20, choices=CATEGORY_CHOICES, default='Exam')

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-13 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 2:42 PM, Fellipe Henrique wrote: > On Tue, Jul 12, 2016 at 1:52 PM, Ramiro Morales wrote: > >> Where the 'Conjunto de dados' seen in the screenshot title comes from? Is >> the code you posted actually in sync with it? > > > Sorry

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-13 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 8:39 PM, Lachlan Musicman wrote: > There's a ticket for this in the tracker iirc, but I can't find it now. I > think the reason is because that's the name of the DB field - it's not > localizable (in so much as we don't localize db field names). > That

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Lachlan Musicman
There's a ticket for this in the tracker iirc, but I can't find it now. I think the reason is because that's the name of the DB field - it's not localizable (in so much as we don't localize db field names). I *think* that was the reason. -- The most dangerous phrase in the language is,

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Fellipe Henrique
On Tue, Jul 12, 2016 at 1:52 PM, Ramiro Morales wrote: > Where the 'Conjunto de dados' seen in the screenshot title comes from? Is > the code you posted actually in sync with it? Sorry about that, I take the screenshot before change these text to "DataSet"... [image: Inline

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 1:44 PM, Fellipe Henrique wrote: > > On Tue, Jul 12, 2016 at 1:34 PM, Ramiro Morales wrote: > >> Can you post a simplified excerpt of the relevant (fields, Meta options, >> __*__ methods) models, admin app ModelAdmin's and *Inline's

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Fellipe Henrique
On Tue, Jul 12, 2016 at 1:34 PM, Ramiro Morales wrote: > Can you post a simplified excerpt of the relevant (fields, Meta options, > __*__ methods) models, admin app ModelAdmin's and *Inline's involved which > result in the layout depicted in the screenshot you posted? > Sure,

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Ramiro Morales
On Tue, Jul 12, 2016 at 12:54 PM, Fellipe Henrique wrote: > > On Thu, Jul 7, 2016 at 5:24 PM, Michal Petrucha < > michal.petru...@konk.org> wrote: > >> In that case, the “DATASET” would be the verbose_name of that field, >> and “Dataset_users object” is the string

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-12 Thread Fellipe Henrique
On Thu, Jul 7, 2016 at 5:24 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > In that case, the “DATASET” would be the verbose_name of that field, > and “Dataset_users object” is the string representation of the > original original object that the row corresponds to. > Unfortunately

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Mike Dewhirst
On 8/07/2016 2:56 AM, Fellipe Henrique wrote: Hello, When we need to use TabulerInline on Django Admin, the admin template create a "title" for the field... it's not the verbose_name... verbose_name is set like a Group.. "Blue" line before TabularInline... after this line, w

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Michal Petrucha
On Thu, Jul 07, 2016 at 03:29:00PM -0300, Fellipe Henrique wrote: > On Thu, Jul 7, 2016 at 2:57 PM, Michal Petrucha < > michal.petru...@konk.org> wrote: > > > Maybe you're referring to verbose_name_plural? > > > > Unfortunately no.. :( > > Here is a example: (in pt-br sorry...) > [image:

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Fellipe Henrique
On Thu, Jul 7, 2016 at 2:57 PM, Michal Petrucha < michal.petru...@konk.org> wrote: > Maybe you're referring to verbose_name_plural? > Unfortunately no.. :( Here is a example: (in pt-br sorry...) [image: Inline image 2] I want to change the "DATASET" and "Dataset_users object" verbose_name

Re: How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Michal Petrucha
On Thu, Jul 07, 2016 at 01:56:08PM -0300, Fellipe Henrique wrote: > Hello, > > When we need to use TabulerInline on Django Admin, the admin template > create a "title" for the field... it's not the verbose_name... verbose_name > is set like a Group.. "Blue"

How can I change the TabularInline "title" on Django Admin?

2016-07-07 Thread Fellipe Henrique
Hello, When we need to use TabulerInline on Django Admin, the admin template create a "title" for the field... it's not the verbose_name... verbose_name is set like a Group.. "Blue" line before TabularInline... after this line, we have a table title... that's my problem

What are the things similar TabularInline and StackedInline?

2016-03-02 Thread setivolkylany
Just wondering, how in django so few similar things. -- 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. To post to this

Admin TabularInline show_url doesn't works.

2014-03-14 Thread Fabrizio Alongi
Hi, I've my Django Product and Lists Product with m2m relation with an intermediate model. My problem is that in admin, when I show one List with related products (with TabularInline), in the product row I have a ForeignKey field (rendered with drop down widget) and up to it a string

Re: Column widths in TabularInline

2012-08-29 Thread Vikas Rawal
> How do i customise width of different columns in a TabularInline object in my > admin interface. For record, I finally managed to resize form fields using instructions given here: http://blogs.law.harvard.edu/rprasad/2011/08/31/django-admin-resizing-form-fields-for-tabularinline/

Re: Column widths in TabularInline

2012-08-28 Thread Vikas Rawal
> The problem I am posting it to django list is because the problem is > obviously related to the way django works. Various solutions to the > problem, none of which have worked so far, have either been using > python/django or css (and now, jquery). > > > > you can not expect

Re: Column widths in TabularInline

2012-08-28 Thread Nicolas Emiliani
On Tue, Aug 28, 2012 at 3:47 AM, Vikas Rawal < vikasli...@agrarianresearch.org> wrote: > > > > The problem is that the #id is different for each row of the tabular > > inline object. > > > > it takes the form > > > > id="id_member_set-0-name" for the first row, >

Re: Column widths in TabularInline

2012-08-28 Thread Vikas Rawal
> > The problem is that the #id is different for each row of the tabular > inline object. > > it takes the form > > id="id_member_set-0-name" for the first row, id="id_member_set-1-name" > for the second row, etc. > > Therefore #whatever does not work. Is there a way of

Re: Column widths in TabularInline

2012-08-27 Thread Nicolas Emiliani
On Mon, Aug 27, 2012 at 3:34 AM, Vikas Rawal < vikasli...@agrarianresearch.org> wrote: > > >There is a field in my model called "name". What do I give in the css > > >file to reduce its width to say 100px? > > > > This is css rather than Django but this is what I did to make my > > input field

Re: Column widths in TabularInline

2012-08-27 Thread Mike Dewhirst
On 27/08/2012 4:34pm, Vikas Rawal wrote: There is a field in my model called "name". What do I give in the css file to reduce its width to say 100px? This is css rather than Django but this is what I did to make my input field wider ... .wider .vTextField { width: 60em !important; } If

Re: Column widths in TabularInline

2012-08-27 Thread Vikas Rawal
> >There is a field in my model called "name". What do I give in the css > >file to reduce its width to say 100px? > > This is css rather than Django but this is what I did to make my > input field wider ... > > .wider .vTextField { > width: 60em !important; > } > > If you view source in

Re: Column widths in TabularInline

2012-08-26 Thread Mike Dewhirst
On 26/08/2012 6:22pm, Vikas Rawal wrote: > In admin.py you can for example ... > > fieldsets = ( > (None, { > 'classes': ['myowncssclassname',], > 'fields': ( > 'field_abc', >

Re: Column widths in TabularInline

2012-08-26 Thread Vikas Rawal
> > In admin.py you can for example ... > > > > fieldsets = ( > > (None, { > > 'classes': ['myowncssclassname',], > > 'fields': ( > > 'field_abc', > > 'field_xyz', > > > > ... and specify myowncssclassname in

Re: Column widths in TabularInline

2012-08-25 Thread Vikas Rawal
could be deployed to customise width of a TabularInline object in admin-form. Vikas -- 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 th

Re: Column widths in TabularInline

2012-08-24 Thread Vikas Rawal
> > In admin.py you can for example ... > > fieldsets = ( > (None, { > 'classes': ['myowncssclassname',], > 'fields': ( > 'field_abc', > 'field_xyz', > > ... and specify myowncssclassname in myextrastyle.css then

Re: Column widths in TabularInline

2012-08-24 Thread Mike Dewhirst
On 25/08/2012 3:06am, Vikas Rawal wrote: How do i customise width of different columns in a TabularInline object in my admin interface. In admin.py you can for example ... fieldsets = ( (None, { 'classes': ['myowncssclassname',], 'fields

Column widths in TabularInline

2012-08-24 Thread Vikas Rawal
How do i customise width of different columns in a TabularInline object in my admin interface. V. -- 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/dj

can_add TabularInline ?

2012-07-21 Thread Nicolas Emiliani
Hi, so.. I have a TabularInline admin view that displays '+ Add another' and I would like to remove it, like can_delete = False but for the add option. sadly can_add doesn't exist, so how do I achieve this ? Thanks! -- Nicolas Emiliani Lo unico instantaneo en la vida es el cafe, y es bien feo

admin.ModelAdmin - Recycling TabularInline requires backward foreign key?

2012-05-03 Thread mcJack
Hi all, I try to build a django powered web application which deals with several entities in the database. There is one table - call it A -, which is referenced from several other tables via ForeignKey "fields". I managed to show the content of the referenced table as an inline, but as soon as i

Re: TabularInline Image js bug when adding

2012-05-02 Thread josiano
actually it looks like it's a missing CSS that was the culprit: .empty-form { display-none } this is gone from my online version and I dunno why... anyway, fixed it now =) j -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this

TabularInline Image js bug when adding

2012-05-02 Thread jean polo
hello, just upgrade to 1.4 and I have a weird problem in the admin (therefore the weird post title...): I use TabularInline Image fields in my admin. the problem is when I click on "Add an object Image", the new field get inserted *before* the latest one and therefore its i

how can I use Tabularinline outside of the admin ?

2012-03-01 Thread Lestak
class Interprise( Model ): id = AutoField( primary_key = True ) description = CharField( max_length = 50 ) def __unicode__(self): return self.description class Client_Interprise( Model ): id = AutoField( primary_key = True ) activitie = ForeignKey( Activitie )

Tabularinline in CreateView ?????????????

2012-02-29 Thread Lestak
Hi all: My ask is here: http://dpaste.com/709735/ Thanks... -- 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

Is there a model to allow Django to insert or append records in the TabularInline style to the main table?

2011-12-06 Thread vfclists
Following the style of the Django tutorial I want to add records in the TabularInline style on the main table, not in the master/detail style used in the tutorial. The ideal approach would be to have a list_display and specify how many empty rows should be inserted or appended to the list when

Re: TabularInline "Add another" link not clickable

2011-10-31 Thread Lee
This CSS tweak fixed it: div.inline-group { display: inline-block; } -- 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

Re: TabularInline "Add another" link not clickable

2011-10-30 Thread Lee
More info: actually the *last* "Add another" link on the page is clickable (I have multiple TabularInlines, one for each related table), the others are not. Lee -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email

TabularInline "Add another" link not clickable

2011-10-30 Thread Lee
The "Add another" links in my TabularInlines suddenly stopped being clickable. My browser pointer does not change shape like usual when I hover over the link either. I can tab to the link and press ENTER and it works as expected. The source behind the links is Add another MyModelName I checked

Make help_text visible in TabularInline

2011-10-21 Thread sspross
hi all is it possible to make the field help_text visible in a tabluar inline? thanks! best regards, silvan -- 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

Re: Admin TabularInline Edit Parent Record?

2011-09-27 Thread Lee
Found this snippet, have not tried it yet: http://djangosnippets.org/snippets/431/ -- 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

TabularInline ordering ignored

2011-09-15 Thread Lee
The ordering option of TabularInline is ignored on my Django 1.3 installation. It just orders by the default ascending Id. Any ideas on how to activate this option? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this g

Re: Admin TabularInline Edit Parent Record?

2011-09-06 Thread Uros Trebec
I would like this very much, if someone has any ideas on how to achieve it. -- Uros On Sep 6, 4:35 am, Lee wrote: > I use TabularInlines for Many-to-Many join tables, with the foreign > keys appearing in select lists. The Admin interface automatically > provides the stellar

Admin TabularInline Edit Parent Record?

2011-09-05 Thread Lee
I use TabularInlines for Many-to-Many join tables, with the foreign keys appearing in select lists. The Admin interface automatically provides the stellar "Add-Another" icon (a plus sign) with the select list, to add a new parent record on the fly. It would be extremely useful to also have an edit

Admin TabularInline add-another icon wraps onto another line

2011-09-04 Thread Lee
Depending on how many fields I have in my TabularInlines, the add- another icon (+) often displays below the foreign-key select list instead of next to it. There's no CSS class assigned to the so I can't widen that field. Anyone figure out an easy way to always display that icon to the right of

Re: TabularInline save_model()?

2011-08-23 Thread Lee
Jeez what an easy solution, but I sure with InlineModelAdmin would just do it for us and save us the code. In models.py (genericized and not tested, sorry for any syntax errors): class MyJoinTable(model.Model): parent_table = models.ForeignKey(ParentTable) ... def

TabularInline save_model()?

2011-08-22 Thread Lee
I'm trying to automatically update audit fields "updated" and "updated_by" when an existing record is saved through a TabularInline subform. In my main forms (ModelAdmin) I do that with save_model(): 5 class AuditAdmin(admin.ModelAdmin): 6 ordering = ['id'] 7

Re: Admin TabularInline collapsed fieldset missing expand button

2011-08-22 Thread Lee
Is no one else having problems with collapsed TabularInlines? Seems like this would be a very popular widget, and very important for any serious database app. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Admin TabularInline collapsed fieldset missing expand button

2011-08-20 Thread Lee
I need to display TabularInlines for multiple related tables and have them all initially collapsed. I overrided admin/edit_line/tabular.html and added the "collapsed" class to the element. This collapses the fieldset alright, but there is no button/control to expand it. I've googled for hours and

dajngo TabularInline fixed objects

2011-07-01 Thread Mateusz Harasymczuk
Is there a way to declare a set of fixed objects in TabularInline? I have: Contract object (with user data, user address and stuff) and tabular inline added months. months names are fixed, and there is some data to change for each month I have done this with JavaScript, setting value of each

TabularInline - getting rid of 'original' row

2011-05-24 Thread candlerb
ates/admin/ edit_inline/tabular.html ? The template looks for "inline_admin_form.original or inline_admin_form.show_url" but I can't see how to set those via TabularInline Thanks... Brian.

ModelAdmin with tabularinline Question

2010-07-04 Thread SilverFox
I am trying to write an application that credits a user's account when a bet is paid. I have an admin form with the bet and a TabularInline list of bet choices (the choices that can be bet on). To resolve a bet a ModelAdmin is used to set the status of the bet to True (paid) and the winner field

Re: override TabularInline get_formset - need to call super method?

2010-05-07 Thread ryan
would this be preferable? from admin.py class HDChannelInline(admin.TabularInline): model = HDChannel extra = 0 template = 'admin/edit_inline/tabular.html' def

override TabularInline get_formset - need to call super method?

2010-05-07 Thread ryan
Hi I'm trying to change the extra value based on a related object's attribute. The relevant bit of code starts with: ## begin alterations This way of doing it works, but should I be calling super() at the end? if so, why? I've been reading up on super a lot.

No required field indication in TabularInline

2010-03-17 Thread Dirk Eschler
Hello, in StackedInline the label of a required field gets the class required. In TabularInline (and GenericTabularInline) however, the corresponding table head cell gets no class, so there is no indication if a field is required or not. You have to save to know what fields are required

Re: Overriden Model.save causes TabularInline save error

2010-02-02 Thread Henning Kage
Thanks a lot, I missed to override the TabularInline class, too. I will give it a try. On 1 Feb., 18:01, Daniel Roseman <dan...@roseman.org.uk> wrote: > On Feb 1, 4:11 pm, Henning Kage <henning.k...@googlemail.com> wrote: > > > > > > > Hello together, > >

Re: Overriden Model.save causes TabularInline save error

2010-02-01 Thread Daniel Roseman
  self.created_by = user >         self.updated = now >         self.updated_by = user >         super(Model, self).save(user) > > In our projects, we always have these four timestamp fields, and I > want them to be filled out automatically. That works fine so far, but > when I use a T

Re: File in admin with TabularInline don't get uploaded

2009-12-02 Thread Marcos Marín
Please disregard this message. It was a dumb mistake on my part and I found it. On Wed, Dec 2, 2009 at 16:08, Marcos Marín <marcosma...@gmail.com> wrote: > Hi, > > I have a site where you can create news items that can have attached files. > I'm using TabularInline so the t

File in admin with TabularInline don't get uploaded

2009-12-02 Thread Marcos Marín
Hi, I have a site where you can create news items that can have attached files. I'm using TabularInline so the the admin interface shows attached files in the same view where you create the news items. When I create a new news item and attach files it gives no errors, but the file isn't actually

AttributeError: 'module' object has no attribute 'TabularInline'

2009-03-04 Thread D
I was getting this error AttributeError: 'module' object has no attribute 'TabularInline' with code i knew was good, After a bit of digging i found my own answer ... posted here for anyone who googles the error message; My dev server version of django was ; python -c "import django;

How to change a TabularInline widget size

2009-01-08 Thread Luis Miguel Morillas
When I use a TabularInline class, type text inputs haven't a correct size, so I'm getting too large lines for input: How can I add a size attribute to this input?. I want size to have the maxlength value. This is my code: class BidonInline(admin.TabularInline): model = Bidon class

Re: TabularInline across apps causing unknown error in admin.

2008-11-14 Thread J. Cliff Dyer
On Fri, 2008-11-14 at 11:41 -0500, Karen Tracey wrote: > On Fri, Nov 14, 2008 at 11:28 AM, J. Cliff Dyer <[EMAIL PROTECTED]> > wrote: > > Using Django 1.0, devel server, on RHEL5, with python 2.4. > > I have two apps, venues and content. A venues.Venue is

Re: TabularInline across apps causing unknown error in admin.

2008-11-14 Thread J. Cliff Dyer
On Fri, 2008-11-14 at 11:41 -0500, Karen Tracey wrote: > On Fri, Nov 14, 2008 at 11:28 AM, J. Cliff Dyer <[EMAIL PROTECTED]> > wrote: > > Using Django 1.0, devel server, on RHEL5, with python 2.4. > > I have two apps, venues and content. A venues.Venue is

Re: TabularInline across apps causing unknown error in admin.

2008-11-14 Thread Karen Tracey
On Fri, Nov 14, 2008 at 11:28 AM, J. Cliff Dyer <[EMAIL PROTECTED]>wrote: > > Using Django 1.0, devel server, on RHEL5, with python 2.4. > > I have two apps, venues and content. A venues.Venue is linked to > content.Source via a ManyToManyField defined through VenueSource. When > I try to

TabularInline across apps causing unknown error in admin.

2008-11-14 Thread J. Cliff Dyer
Using Django 1.0, devel server, on RHEL5, with python 2.4. I have two apps, venues and content. A venues.Venue is linked to content.Source via a ManyToManyField defined through VenueSource. When I try to include VenueSource in the Admin form, the admin page for a given Venue shows up fine, but

Re: TabularInline Template

2008-10-01 Thread Keith Eberle
something like this seems to work: {{ field.field.form.initial.name }} keith On Wed, Oct 1, 2008 at 11:28 AM, lingrlongr <[EMAIL PROTECTED]> wrote: > > I want to show a formset as just text in a table in the admin. So I'm > trying to override the tabular.html template. How can I just

TabularInline Template

2008-10-01 Thread lingrlongr
I want to show a formset as just text in a table in the admin. So I'm trying to override the tabular.html template. How can I just extract the value of the field, instead of showing the widget. Here's that particular part of the template: {% for fieldset in inline_admin_form %}

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-25 Thread Elliot Tucker
Thanks for being dumb TeenSpirit83, i've just spent 30mins trying to fix exactly the same typo...small world. On Sep 11, 2:56 pm, TeenSpirit83 <[EMAIL PROTECTED]> wrote: > > The L in Inline should not be capitalized.  Is it in some doc you are > > working from? > > > Karen > > The docs are

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread TeenSpirit83
> > The L in Inline should not be capitalized.  Is it in some doc you are > working from? > > Karen The docs are correct! I'm so dumb, it is the first time I notice the L is not capitalized! I was sure of the opposite! Thanks a lot Karen! --~--~-~--~~~---~--~~ You

Re: 'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread Karen Tracey
On Thu, Sep 11, 2008 at 9:29 AM, TeenSpirit83 <[EMAIL PROTECTED]>wrote: > > I'm trying to upgrade my skills from django 096 to 1.0 so I started a > new app and tried to create an admin class for a class within its > model. > I got the error I specified in the subject. I paste down the > traceback

'module' object has no attribute 'TabularInLine' Attribute Error in Django 1

2008-09-11 Thread TeenSpirit83
40. __import__("%s.admin" % app) File "C:\Django-1.0\retailcenter\publicsite\admin.py" in 22. class DocumentoInLine(admin.TabularInLine): Exception Type: AttributeError at /admin/ Exception Value: 'module' object has no attribute 'TabularInLine' --~--~-~-

Re: Having trouble creating admin form using TabularInline

2008-08-30 Thread Karen Tracey
On Sat, Aug 30, 2008 at 2:04 PM, jeffself <[EMAIL PROTECTED]> wrote: > > My model has 3 main classes, School, Contest, Participant. > > School contains the following fields: school_name, slug, nickname. > Contest contains the following fields: date_scheduled, title, notes. > Participant contains

Having trouble creating admin form using TabularInline

2008-08-30 Thread jeffself
My model has 3 main classes, School, Contest, Participant. School contains the following fields: school_name, slug, nickname. Contest contains the following fields: date_scheduled, title, notes. Participant contains the following fields: contest (foreign key), school (foreign key), score I want

Re: How to set can_delete to TabularInline

2008-08-18 Thread Marinho Brandao
ok, found here: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L755 2008/8/18 Marinho Brandao <[EMAIL PROTECTED]>: > Hi all, > > (talking about Admin) > > somebody knows how to set a can_delete=True to a TabularInline-based class? > &g

How to set can_delete to TabularInline

2008-08-18 Thread Marinho Brandao
Hi all, (talking about Admin) somebody knows how to set a can_delete=True to a TabularInline-based class? looking into the code, I see the inline formsets are created in ModeAdmin.add_view and ModeAdmin.change_view, and not found a way to do that with no hack into them to set can_delete