models
model association for a e-store app
I\'m developing an e-store app using ruby on rails and I\'m a bit confused about the model associations. It would help me if someone could give开发者_开发技巧 me an idea about the tables and their ass[详细]
2023-04-08 10:17 分类:问答Displaying logic from one model in the view of another in Rails?
I have a model, Statistic, that has 6 statistics for a Character model. Users can enter values for Strength, Intelligence and so on. I\'ve written a method for automatically calculating bonuses or pe开[详细]
2023-04-06 05:55 分类:问答What approach is best for mapping a legacy application tables named after years in Django?
Better see what the table names look like: 2009_articles 2010_articles 2011_articles 2009_customers 2010_customers[详细]
2023-04-05 18:19 分类:问答Django: django_tables sort on method
I\'m using django-tables (http://pypi.python.org/pypi/django-tables/0.2) to render the contents of a MySQL table.[详细]
2023-04-05 01:06 分类:问答Multiple apps in Ruby Padrino: How to name models?
I have a Padrino project, that consists of multiple apps. For example: Website (Models: Site, Page) Blog (Models: Post, Comment)[详细]
2023-04-04 12:04 分类:问答Importing a model in Django that shares it's name between two different applications problem
I have two apps one named \"challenge\" another named \"stats\"; within the models.py files of both I have classes named Team.They serve two complete seperate purposes.When I import from another app[详细]
2023-04-04 10:49 分类:问答how to translate symbol/attributes of models into some french language
I have been using an date picker control, if some one enters text instead of date then there is custom massage that i want to show, I have done it with English language but i am unable to translate it[详细]
2023-04-03 11:40 分类:问答Many-to-many "by proxy" relathionship in django
My data model consists of three ma开发者_开发技巧in entities: class User(models.Model): ... class Source(models.Model):[详细]
2023-04-03 03:52 分类:问答Model (Product) attributes used in product, alert, predefined search.. is it right with DRY concept?
First of all I would like to mention that I am not an experienced programmer. Say there\'s a model Product, and there are some types of products with different attributes (well, 2 types for example).[详细]
2023-04-02 15:34 分类:问答How should I get my model's instances to belong to all users in my user model?
I have the following setup and I want to ensure that all brands in my brand model belong to all users in my user model. I would also like to ensure that once a brand has been created, and it belongs t[详细]
2023-04-01 14:48 分类:问答